Leaderboard Archive
Javascript Apr 6, 2026

What does this output?

console.log(0.1 + 0.2 === 0.3)
A true
B false
C TypeError
D undefined
Explanation
Floating point precision issue. 0.1 + 0.2 = 0.30000000000000004 in JavaScript due to IEEE 754 binary floating point.
📝
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 →