Created
March 30, 2011 08:55
-
-
Save ahmadajmi/894084 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
var foo = 22; | |
var t = foo && 23; | |
t; // return 23 | |
var t = foo || 23; | |
t; // return 22 | |
var bar = true; | |
!bar; // return false | |
!!bar // return true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment