Why does typeof null return "object" in JavaScript?
It is a bug from 1995 that can never be fixed. Here is the actual cause, and what to use instead when you need to check for null.
· 3 min read
Explanations of the concepts that trip people up — why the language behaves the way it does, not just what to type.
It is a bug from 1995 that can never be fixed. Here is the actual cause, and what to use instead when you need to check for null.
· 3 min read
Microtasks, macrotasks and why setTimeout(fn, 0) does not run immediately — worked through with code you can reason about rather than a diagram.
· 3 min read