Introduction to JavaScript
overview
javaScript is a cross-platform, i.e. , used both on the client-side and server-side, object-oriented
scripting language. It is primarily used for enhancing the interaction of a user with the webpage.
In other words, one can make their webpage more lively and interactive with the help of
JavaScript. JavaScript is also being used widely in Web development, game development etc. The
programs in this language are called scripts. They can be written right in a web page’s HTML and
run automatically as the page loads. Scripts are provided and executed as plain text. They don’t
need special preparation or compilation to run. In this aspect, JavaScript is very different from
another language called Java.
History Of JavaScript
JavaScript was invented by Brendan Eich in 1995 and became an ECMA standard in 1997.
● ECMAScript is the official name of the language.
● ECMAScript versions have been abbreviated to ES1, ES2, ES3, ES5, and ES6.
● Since 2016 new versions are named by year (ECMAScript 2016 / 2017 / 2018).
● Now the latest version of JavaScript, i.e. ES6, is used.
Features of Javascript are as follows:
- JavaScript was created in the first place for DOM manipulation. Earlier websites were mostly static, after JS was created dynamic Web sites were made.
- Functions in JS are objects. They may have properties and methods just like another object. They can be passed as arguments in other functions.
- Can handle date and time.
- Performs Form Validation although the forms are created using HTML.
- No compiler is needed.
- An interpreted language
- Embedded within HTML
- Minimal Syntax - Easy to learn( C syntax and java OOC)
- Mainly used for client-side scripting because all browsers support it
- Designed for programming user events
- Platform Independence/ Architecture Neutral
Comments
Post a Comment