JavaScript
- JavaScript is light weight interpreted and JIT compiled programming language.
- Interpreted means it translates line by line.
- JavaScript is also a compiled programming language.[all lines are translated at
the same time]
- JavaScript following 2 types of compiling techniques
a) JIT [Jus-In-Time]
b) AOT [Ahead-Of-Time]
- JIT compiles in browser.
- AOT compiles in application.
Angular JS
Angular
React
Vue
BackBone JS
- JavaScript compilers are
V8
Babel
- JavaScript is a language which is used with
HTML Client Side
Node.js Server Side
MongoDB Database
Flash, 3DSMAX Action Script[Animations]
Evolution:
- First Browser
Mosaic Markup : GML, SGML, HTML
Client Side Script : ECMA Script
- 1994 Netscape
Netscape Communicator HTML, ECMA Script
Netscape appointed "Brendan Eich" to develop a script.
[MDN]
Mocha
Live Script
Netscape => Live Script => Sun Micro Systems [Java]
JavaScript
A script can be embedded into another technology or it can run individually.
- 1998 Microsoft OS - Win98 - Free Browser
Netscape stopped its services in 2000
Netscape => JavaScript => ECMA
JavaScript = ECMA Script [ES5, ES6, ES7 .. ES2021]
What is the role of JavaScript with HTML?
- HTML presents DOM.
- JavaScript is used to manipulate DOM.
a) Add Element to DOM.
b) Remove Element from DOM.
c) Change the Position of Element in DOM.
d) Render new content into Element.
e) Render Data into DOM.
f) Update date in DOM etc.
- JavaScript is also used to handle Browser Actions [BOM]
a) Window
b) Navigator
c) Location
d) History
e) Document