Implement a custom iterator in JavaScript that iterates over Fibonacci numbers.

Instruction: Write a custom iterator that generates an infinite sequence of Fibonacci numbers.

Context: This question tests the candidate's understanding of the iterator protocol and their ability to implement custom iterable objects.

Upgrade to view answer

Related Questions