Hacker News new | ask | show | jobs
by michaelmartin 4450 days ago
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