JavaScript the Grumpy Parts
summary
Explains why JavaScript behaves oddly with concrete claims and runnable examples: shows hoisting is a lie by walking the two‑phase compiler, demonstrates that undefined is assignable, that typeof null returns object and NaN is a number, and compares var/let/const scope with exact outputs. Uses setTimeout and the event loop to reproduce the classic loop/i=10 result, shows how call/bind/apply and arrow binds this at definition change this, and demos async/await interop with Promise.all and debugging via Quokka/Walaber JS.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:24Why JavaScript is weird
- 8:11JavaScript compiler basics
- 15:36Variable hoisting explained
- 21:19Global scope and reference errors
- 25:16Let vs var vs const
- 33:28Understanding 'this' keyword
- 42:05Fixing 'this' with bind and arrow
- 46:38Event loop deep dive
- 50:37Async await explained
- 54:11Q&A








