Created
March 11, 2021 12:45
-
-
Save zlatkov/78355228beb10ae5052edc8df45b698f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let fibonacciSequenceIterator = makeFibonacciSequenceIterator(5); | |
for (let x of fibonacciSequenceIterator) { | |
console.log(x); //1 1 2 3 5 8 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment