What is JavaScript?
JavaScript is dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementation allows client-side scripts to interact with the user and create dynamic pages. It's an interpreted programming language with object-oriented capabilities.
JavaScript was formerly known as LiveScript, but Netscape changed its name to JavaScript, because of the excitement being generated by Java. JavaScript first made its appearance in Netscape 2.0 in 1995 under the name LiveScript. The general-purpose core of the language is embedded in Netscape, Internet Explorer, and other web browsers.
Advantages of JavaScript
1. Less server interaction − You can validate user input before sending the page to the server. JavaScript saves server traffic which means less load on your server.
2. Immediate feedback to the visitors − They don't have to wait for the page to reload to see if they forgot to enter something.
3. Increased interactivity −You can create interfaces that react when the user hovers over them with the mouse or activates them via the keyboard.
4. Richer interfaces − You can use JavaScript to include items such as drag and drop components and sliders to give your site visitors a rich interface.
Limitations of JavaScript
1. Client-side JavaScript does not allow reading or writing of files. It has been kept for security reasons.
2. JavaScript cannot be used for networking applications as no such support is available.
3. There is no multi-threading or multiprocessor capability in JavaScript.
0 Comments