Advanced JavaScript Advanced JavaScript

Block Scope in ES6

In ECMAScript 6, the "let" keyword will implicitly create a block-level scope and add declarations to that scope rather than the enclosing function. The most common use-case for the let keyword is for loops.
Get Unlimited Access Now