Created
February 16, 2010 07:16
-
-
Save bcherry/305371 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NaN === NaN; // false | |
NaN + 1; // NaN | |
NaN = 1; | |
NaN === NaN; // true | |
NaN + 1; // 2 | |
typeof undefined; // "undefined" | |
undefined = 1; | |
typeof undefined; // "number" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, it is strange that we can name variable with NaN & undefined and it causes misleading errors if we do so