Introduction To JavaScript ========================== ==> to add the functionality to our web elements, we should use the javascript. what is JavaScript? ==================== ==> powerful, high-level and scripting language. JavaScript can be used with: 1) in HTML ==> Client side 2) Node.Js ==> Server side 3) Mongo DB ==> Database 4) 3DS Max, Revit ==> Animations JavaScript ==> two different Compilation Techniques: JIT ==> Just In Time AOT ==> Ahead Of Time JS can run ==> browser JS can run ==> application is JS compiler based or interpreter based? ============================================ V8, babel, typescript et History of JavaScript: ====================== Mosaic ==> browser Markup Languages: GML, SGML, HTML Scripting language: ECMAScript 1994, Netscape Corporation Netscape browser Brenden Eich ==> written a language "Mocha" Mocha ==> renamed by Netscape ==> Live Script 1998 Microsoft ==> launched an OS ==> win98 free browsers: IE (Internet Explorer), Chrome etc. Live Script ==> Sun Micro System Live Script ==> JavaScript Netscape ==> ECMA JavaScript ==> ECMASCRIPT Ecma Script ==> standard JavaScript ==> practical implementation =============================================== Why the JS? =========== DOM (Document Object Model) Operations ======================================= 1) Adding of elements 2) Removing of Elements 3) Replace etc. BOM (Browser Object Model) Operations ====================================== Location History Navigations Popups/Alerts etc. ===================================================== How to use the JS? ================== three ways: 1) Inline JS 2) Embedded JS 3) External JS