Last active
September 19, 2017 20:16
-
-
Save Gonzalo2683/930cee84ec9b4967dbfa292684a70ec0 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
Falsy Values (using !!) | |
The empty string "" | |
null | |
undefined | |
The number 0 | |
The number NaN | |
The Boolean false | |
Truthy | |
The String "0", " ", "false" | |
var i = 1 + undefined; //NaN | |
var j = 1 + null; // 1 | |
1 * undefined; // NaN | |
1 * null; // 0 | |
!!undefined; // false | |
!!null; // false | |
"value:" + null; //string | |
"value:" + undefined; // string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment