All challenges
Multiple ChoiceBeginner 30s

Ternary Operator

Choose the best answer for: conditional operator
Options
  1. 1condition ? trueExpr : falseExpr
  2. 2condition ?? expr for both branches
  3. 3expr when the condition is truthy
  4. 4if condition then expr for the true case

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle