Hari Krishna Anemharikrishna.hashnode.devยทJan 11, 2022JavaScript: Generator function examplefunction* gen() { yield 100; let a = 100 a = a + 1 yield a; a = 200 yield a * 2; } // Calling the Generator Function var mygen = gen(); console.log(mygen.next().value); console.log(mygen.next().value); console.log(mygen.next()....Generator functionAdd a thoughtful commentNo comments yetBe the first to start the conversation.