Ruby - Loops and Iteration
Identify the error in this Ruby code snippet:
5.times do i puts i end
5.times do i puts i end
do |i| ... end.do i without pipes, which is invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions