Javascript
Apr 5, 2026
What does this output?
console.log(typeof null)
The Correct Answer
B
Explanation
typeof null returns "object" — this is a famous JavaScript bug from 1995. It was never fixed because doing so would break millions of existing websites.