operation with 3 operands.
JS ⟩ statement ⟩ expression ⟩ operator ⟩ ternary
(operator) an operation with 3 operands. 👉 table of operators
condition ? a : b // returns a if condition true, b otherwise.
🈯 synonyms: conditional operator (?:)
unary operator
binary operator
Last updated 2 years ago