What's NaN?NaN is not a number. Usually it is caused by a type or declaration error.
Funny parts of NaNso if you compare NaN to NaN, you will get false.
But if you do isNaN(NaN) - then it is true |
Sample codevar a = "abc";
var b = 4; var x = a / b; alert(x); you should get NaN since you are dividing a string to a number. |