Advantages of Scripting Languages
Advantages of Scripting Languages
Introduction to JavaScript
JavaScript is a dynamic computer programming language. It is lightweight and
most commonly used as a part of web pages, whose implementations allow client-
side script to interact with the user and make dynamic pages. It is an interpreted
programming language with object-oriented capabilities.
History
JavaScript was first known as LiveScript, but Netscape changed its name to
JavaScript, possibly because of the excitement being generated by Java. JavaScript
made its first appearance in Netscape 2.0 in 1995 with the name LiveScript. The
general-purpose core of the language has been embedded in Netscape, Internet
Explorer, and other web browsers.
This Ecma Standard defines the ECMAScript 2021 Language. It is the twelfth
edition of the ECMAScript Language Specification. Since publication of the first
edition in 1997, ECMAScript has grown to be one of the world's most widely used
general-purpose programming languages. It is best known as the language
embedded in web browsers but has also been widely adopted for server and
embedded applications.
Interpreted Language:
An interpreted language is a programming language which are
generally interpreted, without compiling a program into machine
instructions. It is one where the instructions are not directly
executed by the target machine, but instead read and executed by
some other program. Interpreted language ranges – JavaScript,
Perl, Python, BASIC, etc.
React
jQuery
Vue.js
Ext.js
Ember.js
Meteor
Mithril
Node.js
Polymer
Aurelia
Backbone.js etc.
Client side validation - This is really important to verify any user input before submitting it to the
server and Javascript plays an important role in validting those inputs at front-end itself.
Manipulating HTML Pages - Javascript helps in manipulating HTML page on the fly. This helps in
adding and deleting any HTML tag very easily using javascript and modify your HTML to change its look
and feel based on different devices and requirements.
User Notifications - You can use Javascript to raise dynamic pop-ups on the webpages to give
different types of notifications to your website visitors.
Back-end Data Loading - Javascript provides Ajax library which helps in loading back-end data
while you are doing some other processing. This really gives an amazing experience to your website
visitors.
Presentations - JavaScript also provides the facility of creating presentations which gives website
look and feel. JavaScript provides RevealJS and BespokeJS libraries to build a web-based slide
presentations.
Server Applications - Node JS is built on Chrome's Javascript runtime for building fast and
scalable network applications. This is an event based library which helps in developing very sophisticated
server applications including Web Servers.
<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = 8*5;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<script>
document.write(18/6);
</script>
<script>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<h2>Alert Box</h2>
<script>
window.alert(6*6);
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<script>
console.log(5 + 6);
</script>
</body>
</html>