ES6 in A Nutshell
ES6 in A Nutshell
Old JS ES6
var let and const
Can re-define variables: Cannot red-fine with let:
var x = 1; let x = 1;
var x = 2; let x = 2;
No errors produced on compile. Would produce errors on compile.