May 2011
Intermediate to advanced
1096 pages
40h 54m
English
NaN — the not-a-number property
NaNNaN 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!
Read now
Unlock full access