parseFloat(\"NaN\")
returns \"NaN\", but
parseFloat(\"NaN\") == \"NaN\"
returns false. Now, that\'s probably a go
When a JavaScript function returns NaN, this is not a literal string but an object property in the global space. You cannot compare it to the string "NaN".
NaN
"NaN"
See https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/NaN