Created
November 18, 2019 12:42
-
-
Save abel-masila/3c9842851644cf886dbf379040377985 to your computer and use it in GitHub Desktop.
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
const x = 'abc'; // Associated with true. | |
const a = !x; // The ! determines x is associated with true and returns the opposite, false. | |
const b = !a; // The ! takes value 'a' of false and reverses it to true. | |
!!'abc' // Evaluates to true. | |
!!null // Evaluates to false. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment