What does `typeof null` return in JavaScript?
Answer & explanation
Answer: "object"
This is a longstanding JavaScript quirk: `null` is a primitive, but `typeof null` returns `"object"`.
Practice values & types with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
Answer: "object"
This is a longstanding JavaScript quirk: `null` is a primitive, but `typeof null` returns `"object"`.