Leaderboard Archive
Javascript Apr 5, 2026

What does this output?

console.log(typeof null)
A "null"
B "object"
C "undefined"
D "NaN"
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.

Ready for your shot?

Join thousands of developers solving one logic puzzle every morning.

Solve Today's Challenge →