Section 24.127. NaN: the not-a-number property


24.127. NaN: the not-a-number property

ECMAScript v1

24.127.1. Synopsis

 NaN 

24.127.2. Description

NaN is a global property that refers to the special numeric not-a-number value. The NaN property is not enumerated by for/in loops and cannot be deleted with the delete operator. Note that NaN is not a constant and can be set to any other value, something that you should take care not to do.

To determine if a value is not a number, use isNaN( ), because NaN always compares as nonequal to any other value, including itself!

24.127.3. See Also

Infinity, isNaN( ), Number.NaN




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net