NaN

NaN is a special numeric value that represents Not-A-Number.

It is used to represent an undefined or unrepresentable value.

NaN is not equal to any value, including itself (NaN == NaN is false), as specified by the IEEE 754 standard. To check if a value is NaN, use the isNaN or Number.isNaN function.

Syntax

NaN

Examples

parseInt("hello")
NaN
Math.sqrt(-1)
NaN
0 / 0
NaN