JavaScript's History
- Presented in 1995 as Mocha language by Brendan Eich;
- Renamed to LiveScript and released in the Netscape 2.0 Beta release;
- Renamed to JavaScript because of Java's Hype;
- Re-released by Microsoft in the Internet Explorer as JScript;
- In 1997 it was padronized by ECMA international as ECMAScript;
- 1997: ES1; 1998: ES2; 1999: ES3; 2009: ES5; 2015: ES6.
So JavaScript is the Official language name, and ECMAScript is the version protocol.
Coding in JS
Variables & Constants
- Cannot have a number as first character. Ex: let 1one = value;
- Cannot contain spaces. Ex: let 1 one = value;
- They are Case Sensitive Ex: one ≠ One;
- It is recommended to use Case diff to separate words Ex: let pageOne = value.
let [varName] = [value] //Simple variable
const [constName] = [value] //Simple constant
Primitive Types