Multiple ChoiceBeginner 30s
What is ternary operator?
Choose the best answer for: What is ternary operator?
Options
- 1A shorthand for if-else: condition ? a : b
- 2Represents the null value in expressions
- 3Represents the undefined value in expressions
- 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.