Beginner
Ruby
Q8 / 100
What does the "each" method do when called on an array?
Correct! Well done.
Incorrect.
The correct answer is B) Iterates over each element, yielding it to a block
B
Correct Answer
Iterates over each element, yielding it to a block
Explanation
each iterates over a collection, calling the given block once per element without modifying the collection.
Progress
8/100