Javascript
Apr 5, 2026
What does this output?
console.log(typeof null)
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.
📝
Reviewed by CodeShot Editorial
Every challenge is code-reviewed by senior developers to ensure accuracy and real-world relevance. Learn more.