Intermediate Ruby
Q47 / 100

What is the purpose of "yield" inside a method?

Correct! Well done.

Incorrect.

The correct answer is B) To execute the block passed to the method at that point

B

Correct Answer

To execute the block passed to the method at that point

Explanation

yield invokes the block associated with the current method call, optionally passing arguments to it.

Progress
47/100