Is the ternary operator written x : y ? z or x ? y : z ?

Q

Is the ternary operator written x : y ? z or x ? y : z ?

✍: Guest

A

It is written x ? y : z.

2012-11-13, 2291👍, 0💬