Ruby - Basics and Runtime
What will the following Ruby code output?
arr = [1, 2, 3]
puts arr.map { |x| x * 2 }arr = [1, 2, 3]
puts arr.map { |x| x * 2 }15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions