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!)

must use the function isNaN() to test for it.

1 comment:

Anonymous said...

at least in firefox 3 you can use

something == NaN