You and the Temporal Dead Zone, ES6 Variables For Fun and Profit
summary
Shows exactly what changes and what breaks: let/const block scope introduces real per-iteration closure in for loops and enforces a temporal dead zone that throws where hoisting used to hide bugs, arrow functions remove ~1,500 explicit binds by lexically binding this, spread/rest and destructuring replace argument slicing and temp variables, template literals simplify multiline and interpolation, and an actual rewrite of 150 to 200 thousand lines of Appium in Node.js to ES6/ES7 proves the features work in a large codebase while surfacing oddities like non-collectible "constants."
AI-written summary · about








