
Understanding JavaScript the Easy Way
History of JavaSript 1. The Birth of JavaScript (1995) JavaScript was created by Brendan Eich in 1995 while he was working at Netscape. Initially named Mocha Later renamed to LiveScript Finally renamed JavaScript (because Java was very popular at that time, and the name helped in marketing) Interestingly, the first version of JavaScript was developed in just 10 days. 2. Standardization (1997) In 1997, JavaScript was standardized by ECMA International under the name ECMAScript (ES). This ensured that different browsers followed the same core rules and reduced compatibility issues. Variables in javascript Variables in JavaScript are used to store data values. You can think of a variable as a container that holds information. How to Declare Variables In JavaScript, there are three ways to declare variables: 1.Var(Old Method) `var name = "Hari"; ` Function-scoped Can be re-declared Not recommended in modern JavaScript 2.let(Modern & Recommended) `let age = 22; ` Block-scoped Can be updated
Continue reading on Dev.to
Opens in a new tab



