JavaScript's 'let' keyword
Good news everybody! ES6 (or ES2015) introduces the let
keyword. This allows the developer to attach a variable to the scope of whatever code block - code between {
and }
- it resides in. Block scope rather than function scope!