
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Javascript has the concept of generators. They are critical to this problem.
First yield 0 and 1.
Create an infinite "while(true)" loop.
In that loop, continuously yield the next value which is the sum of the previous two.