ES2015(aka ES6) introduced a new keyword let that declares a new variable in block scope. Before that, most JavaScript variables are function scope or global scope.
Function ScopeFollowing example sho
Continue reading