- 1
what is Javascript
i need clear explanation from this question please help
4 Answers
+ 11
Greetings Richard Michael, I know those badges are tempting but do not post questions you already know the answer to, it is a kind of spamming and this particular question is not exactly a new one
+ 2
JavaScript can tell your browser to do certain things.
For example, there's a event listener for mouse click in your browser. Meaning, there's a code running in the background which is waiting for you to click. As soon as you click, JavaScript knows it. Now, you can have a JavaScript code that says change the background color of the webpage, and then revert after certain time.
That's just a basic example. You can use JavaScript for complex works, that basic CSS and HTML can't do. Like, calculate the mid-point of a div in HTML, and determine how far is mouse's pointer from that. At the same time, have a circle constantly chase the mouse but not if the mouse is at the right side of the mid-point. Also, stop this all after 5 sec, then start again after a gap of 2 sec.
There you go, JS is the main logic backbone of the front end web development.
+ 1
Script language for use in web pages, but just working in browser on client side.
- 1
JavaScript can be used in interaction to any webpage