Created
October 8, 2019 01:35
-
-
Save djD-REK/aac9da6754225d006cd62d8b40df40cb 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 maybeNull = null | |
if(maybeNull) { console.log("Not null") } else { console.log("Could be null") } // Could be null | |
for(let i = 0; null; i++) { console.log("Won't run") } | |
maybeNull ? console.log("truthy value") : console.log("Falsy value") // falsy value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment