DEV Community

Discussion on: Writing If Statements with the Ternary Operator

Collapse
 
pentacular profile image
pentacular

Given that === already produces true or false the examples are a bit redundant. :)

Here's another operator taking three operands: a(b, c).

Collapse
 
valentinaperic profile image
Valentina Peric

I updated the article to use strings instead! Thanks for the input 😊

Collapse
 
pentacular profile image
pentacular

You're welcome.