Put in order · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript
Object Returned by next()
Arrange the steps of an iterator from the first next() call to completion:
Items to put in order
- { value: 'second', done: false }
- { value: undefined, done: true }
- { value: 'third', done: false }
- { value: 'first', done: false }
You can check the correct answer by solving this task in the CodeWorlds game.