⭕ternary operator
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 (?:)
Last updated
Was this helpful?