Each call to the next() method on a generator returns an object with two properties: value and _________.

  • result
  • done
  • output
  • complete
The next() method on a generator returns an object with two properties: value (the yielded value) and done (a boolean indicating whether the generator has completed). The other options do not represent the properties returned by the next() method.
Add your answer
Loading...

Leave a comment

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