JavaScript is the most popular web scripting language. It is lightweight, interpreted programming language with object-oriented capabilities. It used for both client side as well as server side development.
=> JavaScript was created by the Brendan Eich.
=> It was first appeared in December 4, 1995.
Why to Learn Javascript
- JavaScript is the most powerful programming language because it powers the dynamic behavior on most websites.
- JavaScript can change HTML content
- JavaScript helps you to create interactive and fast websites.
- JavaScript reduce the server interaction by doing some frontend work (like form validation).
Example –
Program – Hello World
<html> <body> <script language = "javascript" type = "text/javascript"> document.write("Hello World!"); </script> </body> </html>
There are several useful JavaScript frameworks and libraries available:
- JQuery
- React
- Angular
- Node.js
- Polymer
- Ext.js
- Backbone.js
- Ember.js
- Vue.js
Applications of Javascript Programming
JavaScript is a widely used programming language both in frontend as well as in backend. Some of the use of JavaScript in applications:
- Client Side Validation – JavaScript plays very important role in validating the user inputs before it saved or sent to the server.
- User notification – While visitors active on website, you can show them a notification or message.
- Manipulating HTML content – Using JavaScript, it becomes very easy to manipulate the HTML content. You can add or remove any HTML tags or data in it.
- Back-end Data Loading – JavaScript helps to load data asynchronously. It means JS load data in backend even if visitor doing some other processing.