The essence of the question in the title.

Reported as a duplicate at Grundy. javascript Nov 29 '18 at 15:15 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • Where is the best? Why did you decide which is better? - andreymal
  • Right here, at the end of the article, such a statement and an example at the end with a stack are not clear to me. Learn.javascript.ru/generator - ZdraviSmisl
  • It turns out that the interpreter does not see the nested calls in the usual yeild? - ZdraviSmisl
  • one
    And should not see. yield * delegates execution to another generator, yield does not delegate, it is written about this by your link. Built-in generator or not built-in - does not matter - andreymal
  • 2

0