Checks whether a value is NaN, without type coercion.
- Category: JS Number Reference — part of the JavaScript Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "Number.isNaN()" in one sentence, then back it up with a tiny example
// Number.isNaN() — minimal example
console.log("Number.isNaN()");Tip
Quick recall: "Number.isNaN()" — checks whether a value is NaN, without type coercion.