NaN Property Check
Multiple Choice Medium
Question
What does NaN === NaN return?
Hint
NaN is the only value not equal to itself.
Explanation
NaN === NaN returns false. NaN (Not a Number) is the only JavaScript value that is not equal to itself. To check if a value is NaN, use Number.isNaN() or Object.is(), never x === NaN. This design comes from IEEE 754 floating point standards.
Related Resources
Related Lessons
- Data Types
Learn about primitive data types.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.