How the Question Mark (?) Operator Works in JavaScript

How the Question Mark (?) Operator Works in JavaScript