User’s processor does the code execution here. It saves the bandwidth for the web server.
Easier Site Maintenance
Java Script is very user-friendly. It executes faster and also low bandwidth utilization on the web server which is beneficial for the users.
Availability of Third Party Add-ons
It enables developers and also users to add more functionality to the websites by using code snippets.
Info-graphic of java script tells you more: