ternary operator

operation with 3 operands.

JSstatementexpressionoperator ⟩ ternary

(operator) an operation with 3 operands. 👉 table of operators

condition ? a : b    // returns a if condition true, b otherwise.

🈯 synonymsconditional operator (?:)

Last updated