Introduction
In this article, we will learn about JavaScript, its basic terms, and syntaxes with example programs.
JavaScript
Javascript is the first scripting programming language that supports browsers and the most popular scripts. JavaScript is the programming language of the Web, and it is an interpreted programming language. Interpreter means converting the JavaScript code into whichever computer language the machine knows; this conversion happens when the code is run, and it must be repeated once the code is run.
JavaScript is used to make HTML Pages live within HTML Pages. The name JavaScript is similar to Java, but it is totally different from Java Programming Language, and in fact, Java was in use before the JavaScript Language.
History of JavaScript
JavaScript was created in May 1995 by Brendan Eich at Netscape, and in 10 days, the first version of JavaScript was ready. The original name of JavaScript was Mocha, named by the founder of Netscape.
In September 1995, the name of JavaScript was changed to Live Script from Mocha. Again in December 1995, the name changed from LiveScript to JavaScript.
Features of JavaScript
JavaScript is a lightweight language.
JavaScript is a case-sensitive and object-based scripting language.
JavaScript is an untyped language, which means we don't need to define the data type of the variables.
Gives the user more control over the browser.
Every statement in Javascript terminates with a semicolon (;).
Most of the Javascript control statements syntax is the same as the syntax of control statements in C and Java language.
JavaScript has built-in functions to determine the date and time.
Why do we use JavaScript?
JavaScript is used in web pages to add functionality, and validation forms, communicate with the server, and read-write HTML elements. JavaScript is a client-side scripting language. All the browsers support JavaScript language, and it makes our website more attractive and lightweight. JavaScript enhances the efficiency of our websites.
JavaScript is often used for modifying the state. Suppose we're clicking on the button, or some connection event server will give us a whole new page to look at, but JavaScript will do it on the client side.
Advantages of JavaScript
Make the HTML page more interactive.
JavaScript is very easy to learn and understand.
JavaScript increases the performance of websites and web applications by raising the length of code
Execute code on events.
Get/Set the Cookies, data, and output messages.
All common browsers support JavaScript. So it is very popular.
JavaScript is client-side, so it reduces the demand on servers overall.
Disadvantages of JavaScript
Can't help to Read/ Write hard disk data, copy files, and call other Programmes.
This will only work on one tab of the browser. It can't affect another tab.
JavaScript supports all browsers, so sometimes different browsers interpret JavaScript code differently.
JavaScript does not support multiple inheritances.
A single code error will stop all JavaScript code from running on the website.


Vijayakumar SPosted Jul 21, 2020, 8:37 PM
Hi, nice article