Javascript is a programming language, which is used to make the webpage interactive with the user.
This scripting language interacts with the different elements of the web pages.
Main Components Of Javascript
There are three main components of Javascript
1. ECMAScript
2. Document Object Model (DOM)
3. Browser Object Model(BOM)
What is ECMAScript?
ECMA stands for European Computer Manufacturers Association.
ECMAScript is a general-purpose scripting language that has been built on the standard of ECMA-262.
This has been done to standardize the Javascript.
Javascript is the implementation of the ECMAScript and all web browsers have to adhere to ECMAScript while creating their Javascript Engine and runtime environment.
What is DOM(Document Object Model)?
DOM Provides interfaces for interacting with elements on web pages.
Because of the DOM Javascript is able to create Dynamic HTML and a developer can manipulate different nodes of the Document.
Developers can use various methods provided by the DOM to alter the HTML document.
What is BOM(Browser Object Model)?
BOM provides the API for interacting with the web browser.
The BOM can be accessed by using the window object which represents the browser window.
Few Examples of BOM API
Opening and closing of the window.
Resizing of the window.
Accessing the cookies
Getting the history of the browser.
History Of Javascript.
Javascript was developed by the Netscape developer named Brendan Eich in 1995.
Firstly it was named as Mocha and later changed to LiveScript.
Later again Livescript name got changed to JavaScript.
So earlier JavaScript was supported by Netscape Navigator. In the meantime, Microsoft has its own scripting language called Jscript and it was supported by Internet Explorer.
There were no standards between Jscript and JavaScript earlier. Later the community decided to standardize the language.
JavaScript is evolving with each passing day. We will learn those in the coming tutorials.
0 Comments:
Post a Comment