Skip to content

Instantly share code, notes, and snippets.

@0GiS0
Created January 28, 2019 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0GiS0/669cca10ca76c4644763c6452c6246c6 to your computer and use it in GitHub Desktop.
Save 0GiS0/669cca10ca76c4644763c6452c6246c6 to your computer and use it in GitHub Desktop.
function* hello() {
yield 'Hello Gisela';
yield 'Hello Alicia';
yield 'Hello Bea';
}
var helloInstance = hello();
console.log(helloInstance.next());
console.log(helloInstance.next());
console.log(helloInstance.next());
console.log(helloInstance.next());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment