Ternary Operator

Let's learn about ternary operators.

What is a ternary operator?

The ternary operator tests a condition by comparing two values and returns a third value based on ...