Search⌘ K
AI Features

Exercise 2: Fibonacci Series Index

Explore how to modify a JavaScript function using ES6 features to generate Fibonacci series values up to a given index. Understand creating limits with iterators, yielding sequence numbers, and practical coding to deepen your grasp of modern JavaScript.

Problem statement

In the previous exercise, we terminated the iteration when the value in the series exceeded 25. Let’s modify the fibonacciSeries() function so that we can terminate the series when a certain number of values has been ...