Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

NaN Constant (JavaScript)

Returns the special value NaN indicating that an expression is not a number.


The NaN constant (not a number) is a member of the Global object, and is made available when the scripting engine is initialized.

The NaN property was introduced in Internet Explorer before Internet Explorer 6, and was made read-only in Internet Explorer 9 standards mode.

Applies To: Global Object (JavaScript)

Community Additions

© 2015 Microsoft