Intercative web pages – It provides various functionalities that make web pages interactive.
For example – Event call when mouse hover on any element or keyboard key pressed.
Platform independent – It is platform independent, when you write code on another machine then it will be able to run on another machine.
• Client-side validation
• Dynamic drop-down menus
• Displaying data and time
• Displaying pop-up windows and dialog boxes (like alert box, confirm box and prompt box).
• Adding or removing elements from the webpage
Javscript Example –
<script> document.write("Hello World"); </script>