News for hackers. Stuff that matters.
Re:NaN does not equal NaN by brendoncrawford on Tuesday September 27, 2011 @05:45PM (#3045373)
> You should never use null in JavaScript for the value of a yet-to-determine number. Always use NaN.

Actually, it is more idiomatic to use undefined for this purpose rather than NaN...

    var determineLater; // undefined
    var blah = 5;
    blah += determineLater; // blah is now NaN

There are no comments on this comment yet.