Multiple ChoiceBeginner 30s
Ternary Operator
Choose the best answer for: conditional operator
Options
- 1condition ? trueExpr : falseExpr
- 2condition ?? expr for both branches
- 3expr when the condition is truthy
- 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.