Ruby - Loops and Iteration
Identify the error in this Ruby code using an iterator:
items = ["a", "b", "c"] items.each do item puts item end
items = ["a", "b", "c"] items.each do item puts item end
|item|.do item instead of do |item|, causing a syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions