Posts

Showing posts from July, 2019

ES6

Image
ES6 is the latest version of javascript: ECMAScript (or  ES ) is a scripting-language specification standardized by Ecma International in ECMA-262 and ISO/IEC 16262. var vs let var is function scope                                                       let is a block scope var declared with var are hoisted                            var declared with let and const not hoisted            function displayVar(){ function displayLet (){    if(true){ if(true){         var m = 20;  let m = 20;     }  }     console.log(m); ...

Javascript For Beginners

Image
Javascript JavaScript was invented by Brendan Eich in 1995 , and became an ECMA standard in 1997. Javascript is scripting or interpreted language .i.e the code executes line by line when the browser load the javascript into the memory.  ECMA-262 is the official name of the standard. ECMAScript is the official name of the language. When JavaScript was created, it initially had another name: “ LiveScript ”. But Java language was very popular at that time, so it was decided that positioning a new language as a “younger brother” of Java  Why Javascript? If we want to execute any code on click of a button or text box value is changed we use Javascript. JavaScript adds behavior to the web page where the web page is capable of responding to actions by your visitors without needing to load a new web page in order to process their request. We need JavaScript to add interaction to websites. Otherwise all sites would be mostly read only static text and images or we'...