An object is considered iterable if it implements the _________ method that returns an iterator.

  • iterate()
  • next()
  • loop()
  • iterator()
In JavaScript, an object is considered iterable if it implements the next() method, which returns an iterator. The next() method should be used to retrieve the next value in the iteration sequence.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *