Created
January 28, 2019 07:30
-
-
Save 0GiS0/669cca10ca76c4644763c6452c6246c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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