Created
July 21, 2011 23:57
-
-
Save abronte/1098535 to your computer and use it in GitHub Desktop.
Javascript type coercion
This file contains hidden or 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
| '' == '0' // false | |
| 0 == '' // true | |
| 0 == '0' // ture | |
| false == 'false' // false | |
| false == '0' // true | |
| false == undefined // false | |
| false == null // false | |
| null == undefined // true | |
| ' \t\r\n' == 0 // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment