Created
August 3, 2022 21:54
-
-
Save EdelweissPirate/56b7af854b754565dbf8c51a01d05486 to your computer and use it in GitHub Desktop.
Ternary Example
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
const num = 9 | |
num < 10 ? | |
console.log(9) : num < 100 ? | |
console.log(09) : console.log('why have you done this?') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment