Ruby - Loops and Iteration
What is the output of this Ruby code?
numbers = [1, 2, 3]
numbers.each { |n| puts n * 2 }numbers = [1, 2, 3]
numbers.each { |n| puts n * 2 }15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions