Ruby - Operators and Expressions
What is the issue with the following Ruby code snippet?
if x == 5
puts "x is five"
elsif x = 10
puts "x is ten"
end
if x == 5
puts "x is five"
elsif x = 10
puts "x is ten"
end
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions