An ES6 compatibility chart: kangax.github.io/compat_table/es6
let
: Not hoisting, we make sure the variable exist before using it- Block scoping: We can redefine a variable within a block and that variable wil dissapear outside the block
const
: When we use theconst
keyword to define a variable we MUST initialize it
With
let
andconst
anything declared inside the block, STAYS in the block