Put in order · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript

Iterator Protocol Syntax

Arrange the elements of an iterator protocol implementation:

Items to put in order

  • 'T-Rex', done: false } } }
  • next() {
  • return { value:
  • const iter = {

You can check the correct answer by solving this task in the CodeWorlds game.