Ruby - Operators and Expressions
You want to assign a grade based on score using a ternary operator. Which code correctly assigns "Pass" if score is 50 or more, otherwise "Fail"?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions