When we serve a html page via Web, the content displayed over the browser is static in nature. That means we cannot change the content once it’s rendered on Web page.
Apart from that, we also have various technologies such as DHTML, ActiveX, etc to make the page dynamic but that added unnecessary overhead to the server.
Hence, it is client-side. This made sites much more responsive for the end user and less expensive in terms of server traffic.
Moreover, it add to the functionality of any web page.
It is not that hard to learn and it is very versatile. Its very easy to grasp the concept, with very little programming background. So, anybody can get his hands dirty with no or minimal overhead.
> Client side scripting language, therefore no server burden.
> It allows the developer to develop highly scalable web apps.
> Functionality, like Partial page load via AJAX, removes frustrating reload of the page.
> Information that changes constantly can be loaded periodically without the need for user interaction.