Which of these loops is an actual alternative to the each method?

for i in 0 ... numbers.length
 puts numbers[i]
end
i = 0while i < numbers.length puts numbers[i]end

You got this! We can use the for loop to iterate over the values of the array. The while loop would have to be finite in order to be an option.

Not quite! We can use the for loop to iterate over the values of the array. The while loop would have to be finite in order to be an option.