Tales of Tech
Sunday, July 30, 2006
Javascript - NaN
NaN means "not a number".
You cannot perform == or != operations against NaN.
NaN is not a string. And it is not a number either (duh!)
You
must use the function isNaN() to test for it.
1 comment:
Anonymous
February 11, 2009 at 12:16 AM
at least in firefox 3 you can use
something == NaN
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
at least in firefox 3 you can use
ReplyDeletesomething == NaN