Question · JavaScript and TypeScript course · Module 5: Advanced JavaScript
Generators in JavaScript
What keyword does a generator use to "produce" the next value?
Answer options
- return
- yield
- emit
- next
You can check the correct answer by solving this task in the CodeWorlds game.