All challenges
Multiple ChoiceBeginner 30s

What is ternary operator?

Choose the best answer for: What is ternary operator?
Options
  1. 1A shorthand for if-else: condition ? a : b
  2. 2Represents the null value in expressions
  3. 3Represents the undefined value in expressions
  4. 4A loop operator that repeats statements

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