Course contentsShow
JavaScript
Lesson 1105 of 2,72325. Iterators and GeneratorsPro lesson

Passing Values to next()

Sending values back into a generator by passing arguments to next(), which become the result of the yield expression.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.