Created
March 9, 2018 23:11
-
-
Save DavidMellul/b341d0942c6062ec8a67b9e9943689d0 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
function databaseCrashed() { | |
return true; | |
} | |
function leaveBuilding() { | |
console.log('We are safe'); | |
} | |
function stayInBuilding() { | |
console.log('We are working hard in here'); | |
} | |
console.log( databaseCrashed() ? leaveBuilding() : stayInBuilding() ); | |
// => We are safe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment