Why is it called a Ternary expression, what does the word "Ternary" indicate?
Topics
JAVASCRIPT
Edit on GitHub
"Ternary" indicates three, and a ternary expression accepts three operands, the test condition, the "then" expression and the "else" expression. Ternary expressions are not specific to JavaScript and I'm not sure why it is even in this list.