Practical JavaScript guides — language features, async patterns, performance and the parts of the spec that surprise people.
How the event loop actually schedules work, why promises always run before setTimeout, and how to stop long tasks from freezing your page.
The TweakPad Team
What a closure is, why the classic loop bug happens, and the three real-world patterns closures enable — memoisation, private state and partial application.
The TweakPad Team
How ?. and ?? work, why ?? is not the same as ||, and the short-circuit behaviour that surprises people. With practical patterns for API data.
The TweakPad Team
Why 0 == "" is true, NaN !== NaN, and when Object.is differs from strict equality. A clear model for JavaScript comparison instead of memorised rules.
The TweakPad Team
How async/await really works, the sequential-await mistake that makes code 10x slower, and how to handle errors and parallel work correctly.
The TweakPad Team
A working reference for JavaScript array methods — which mutate, which return new arrays, and which one to reach for. With performance notes and real examples.
The TweakPad Team