Variables declared with let
have Block Scope
Variables declared with let
must be Declared before use
Variables declared with let
cannot be Redeclared in the same scope
JavaScript Let
==========
let x = 1;
{ let x = 2; document.getElementById(“d2”).innerHTML = x; }
{ let x = 3; document.getElementById(“d3”).innerHTML = x; }
document.getElementById(“d1”).innerHTML = x;