Ruby - Basics and Runtime
What will be the output of this Ruby code?
arr = [1, 2, 3] arr.each do |num| puts num * 2 end
arr = [1, 2, 3] arr.each do |num| puts num * 2 end
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions