Ruby - Operators and Expressions
Identify the error in this Ruby code using a ternary operator:
points = 50 status = points > 40 ? "Winner" "Loser" puts status
points = 50 status = points > 40 ? "Winner" "Loser" puts status
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions