Operators JavaScript Tutorial

An expression that evaluates to a Boolean is always placed to the left of the question mark (?) in the Conditional Operator.
If the expression evaluates to true, the value between the question mark and the colon (:) is returned.
If the expression evaluates to false, the value following the colon is returned.