DEV Community

Discussion on: The Ternary Operator vs The Conditional Operator WTF

Collapse
 
joelnet profile image
JavaScript Joel

Correct (mostly).

While The Conditional Operator's name is not The Ternary Operator, it is however correct to reference it by it's type as The Ternary Operator. The difference being one you are calling by name and one by type.

Collapse
 
bluebell_lester profile image
Bluebell Lester

So in the end it doesn't matter what you'd call it until someone comes up with another ternary operator.

Maybe you should call it the ternary conditional operator :D