Created
February 23, 2012 18:41
-
-
Save tomlane/1894276 to your computer and use it in GitHub Desktop.
JS logic 101
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
//Javascript Logic 101 | |
//make "that" have the value of true (boolean) | |
that = true | |
//check if "that" is false | |
if (!that) { //returns false. (it is not true that the value is set to false) | |
//do something | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment