conforms to both the iterable protocol and the iterator protocolThis object cannot be instantiated directlyGenerator instance can be returned from a JS Generator Function GeneratorThe Generator object is returned by a generator function and it conforms to both the iterable protocol and the iterator protocol.https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator