Why typeof null Returns "object" in JavaScript
Dec 21, 2024 · 2 min read · In JavaScript, one of the quirks that has puzzled developers for decades is the fact that: console.log(typeof null); // Outputs: "object" This behavior is often described as a "historical bug" in the language, and understanding why this happens requi...
Join discussion
