Ruby - Basics and Runtime
Find the error in this Ruby snippet:
arr = [1, 2, 3] arr.each do |num| puts num * 2 end puts num
arr = [1, 2, 3] arr.each do |num| puts num * 2 end puts num
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions