JavaScript NaNProperty
Definition and Usage
NaN stands for Not a Number. The NaN property is used to reference a special non-numeric value. The value specified by this property is not a legal number.
The NaN property is the same as the Number.Nan property.
Tip:Please use isNaN() to determine whether a value is a number. This is because NaN is not equal to any value, including itself.
Syntax
Number.NaN
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the NaN property.
Technical Details
| Return value: | NaN |
|---|---|
| JavaScript version: | 1.3 |
Other extensions
JavaScript Global Functions