I’ve only been trying it in Firefox’s JavaScript console, but neither of the following statements return true:
parseFloat('geoff') == NaN;
parseFloat('geoff') == Number.NaN;
I’ve only been trying it in Firefox’s JavaScript console, but neither of the following statements return true:
parseFloat('geoff') == NaN;
parseFloat('geoff') == Number.NaN;
Hello,
you should use the global isNaN(value) function call.
Examples :
isNaN('geoff'); // true
isNaN('3'); // false
I hope this will help you.
Jerome Wagner