Ruby - Operators and Expressions
Identify the error in this Ruby code snippet using the spaceship operator:
result = 7 <=>
3
puts resultIdentify the error in this Ruby code snippet using the spaceship operator:
result = 7 <=>
3
puts result<=> must be on the same line between operands; splitting it causes syntax error.<=> on one line between values [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions