ternary statement example
Example 1: js ternary
condition ? ifTrue : ifFalse
Example 2: ternary operator
(condition) ? (if true, do this) : (otherwise, do this)
Example 3: javascript ternary
condition ? doThisIfTrue : doThisIfFalse
1 > 2 ? console.log(true) : console.log(false)
// returns false