The NaN property represents "Not-a-Number" value. This property indicates that a value is not a legal number.
The NaN property represents "Not-a-Number" value. This property indicates that a value is not a legal number.
The NaN property is the same as the Number.NaN property.
You can use the isNaN() global function to check if a value is a NaN value.
Number.NaN
NaN
console.log(Number.NaN); console.log(NaN);