1. Adding interactive behavior to web pages
- Show or hide more information with the click of a button
- Change the color of a button when the mouse hovers over it
- Zooming in or zooming out on an image
- Displaying a timer or count-down on a website
- Playing audio and video in a web page
- Displaying animations
2. Creating web and mobile apps
3. Building web servers and developing server applications
Some of the Frameworks of JS:
- Angular JS
- Node JS
- React JS
- Vue JS
Lets see how one of the best professional Social site switch to one of the framework of JS and how it was benefited!!
The server side of the LinkedIn mobile app was built by using Node.JS. They actually moved the back end of the mobile application from Ruby on Rails to Node. Two key reasons for this switch were efficient performance and scalability.
The Ruby on Rails app was a synchronous app that the clients used to make several calls for a single page. All of the calls occurred sequentially, with each thread handling a single request.
Node.JS allowed LinkedIn developers to move to an asynchronous event system where the client made a single request per page and things started working fast and smooth.
The result after applying the NODE JS in place of Ruby on Rails were:
- The company now uses 4 servers instead of 15.
- The traffic capacity has doubled.
- On the client side, the app works 2 to 10 times faster.