ternary operator js definition code example
Example 1: js ternary
condition ? ifTrue : ifFalse
Example 2: ternary operator js
condition ? expression1 : expression2
// Will return expression1 if condition = true and expression2 if condition != true