Comment Comment by michaelmartin ES6 introduces the 'let' keyword which gives you block scope: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...Browser compatibility isn't too bad, but no Safari support it seems: http://kangax.github.io/es5-compat-table/es6/#let parent michaelmartin 12 years ago
Browser compatibility isn't too bad, but no Safari support it seems: http://kangax.github.io/es5-compat-table/es6/#let