Question · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript

Iterable Protocol

Which method must an object implement to be iterable (usable in for...of)?

Answer options

  • [Symbol.iterator]()
  • [Symbol.toPrimitive]()
  • toString()
  • valueOf()

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