News for hackers. Stuff that matters.
Re:JavaScript variables: var and let and const by _bxg1 on Friday March 06, 2020 @03:36PM (#22507084)
Oof. I was surprised for a second that Babel would simply put "var" in there instead, when it expressly doesn't do the same thing. But then I realized that emulating block scope without let would mean wrapping all blocks in anonymous functions, which would carry significant overhead.

Gross.

There are no comments on this comment yet.