Javascript
Apr 12, 2026
What is the type of NaN in JavaScript?
console.log(typeof NaN)
Explanation
NaN means "Not a Number" but its type is "number". This is intentional in the IEEE 754 float standard.
📝
Reviewed by CodeShot Editorial
Every challenge is code-reviewed by senior developers to ensure accuracy and real-world relevance. Learn more.