Ruby - Loops and Iteration
Consider this Ruby code:
What will happen when this code runs?
arr = [1, 2, 3, 4]
arr.each do |num|
if num == 3
redo
end
puts num
endWhat will happen when this code runs?
