Generators  are a kind of special  function that can stop its execution midway and start again from the same point where it stopped after some time. They are basically a combination of functions  and iterators .

#javascript #generator #learn-javascript

How To Yield Generators (Javascript)
2.40 GEEK