Added in ES6
Uses 'yield' keyword.
This constructors an iterator
This has the ability to pause itself
This code looks synchronous but actually runs asynchronous
A generator is a single function that doesn't resolve its body immediately
keywords - "next", "done"
© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited TopPrevNext