How to use the JavaScript Ternary Operator

How to use the JavaScript Ternary Operator