Last active
August 22, 2023 23:44
-
-
Save mcsee/2ba58f618ce930b3d8361596e1a76d28 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
!true // returns false | |
!false // returns true | |
isActive = true | |
!isActive // returns false | |
age = 54 | |
!age // returns false | |
array = [] | |
!array // returns false | |
obj = new Object; | |
!obj // returns false | |
!!true // returns true | |
!!false // returns false | |
!!isActive // returns true | |
!!age // returns true | |
!!array // returns true | |
!!obj // returns true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment