Created
December 14, 2019 11:51
-
-
Save yoelmacia/748a2da0ffa35683c530048779c3fa40 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* printAlphabet() { | |
console.log("a"); | |
console.log("b"); | |
console.log("c"); | |
console.log("d"); | |
console.log("e"); | |
} | |
let generator = printAlphabet(); | |
generator.next(); // a b c d e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment