News for hackers. Stuff that matters.
Re:Ask HN: Am I one of the few JavaScript programmers who di... by michaelmartin on Sunday April 06, 2014 @07:17AM (#7540598)
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

There are no comments on this comment yet.