The Variable Crimes We Commit Against JavaScript
summary
Shows concrete JavaScript behavior with code: uses immediately‑invoked functions and console.log to prove var bubbles to function scope (examples produce 14 from a parent variable, 15 from an implicit global), demonstrates hoisting splitting declarations so a local var logs undefined before assignment (19/20 example), proves arrays/objects are passed by reference, and contrasts ES6: let scopes to blocks and const forbids reassign but allows mutation. Slides and runnable snippets back every claim.
AI-written summary · about
chapters (9)
- 0:00Start
- 0:43The Variable Crimes We Commit against Javascript
- 2:24Immediately Invoked Anonymous Functions
- 11:14Variable Hoisting
- 13:29Function Hoisting
- 22:37Javascript Error
- 22:58Code Locks in Es6
- 26:34Variable Shadowing
- 29:16Make Functions Perform Faster
related talks
35m"The Variable Crimes We Commit Against JavaScript"
55mJavaScript the Grumpy Parts
32mBreak all the rules
41mJavaScript is Weird. MythBusters Special
01h 14mJavaScript the Grumpy Parts
51mAdvanced Javascript Basics for Web Developers
44mThings that every JavaScript developer should know
32mJavaScript is weird. MythBusters special
