Skip to content

Instantly share code, notes, and snippets.

@EdelweissPirate
Created August 3, 2022 21:54
Show Gist options
  • Save EdelweissPirate/56b7af854b754565dbf8c51a01d05486 to your computer and use it in GitHub Desktop.
Save EdelweissPirate/56b7af854b754565dbf8c51a01d05486 to your computer and use it in GitHub Desktop.
Ternary Example
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