Search⌘ K
AI Features

Exercise 1: Fibonacci Series

Explore how to build a Fibonacci series generator function using iterators and symbols in ES6. This lesson helps you understand generator-related concepts and enables you to control the sequence output up to a specified limit. It is an excellent exercise to deepen your grasp of JavaScript iteration techniques.

Problem statement

Let’s create a generator function to produce a Fibonacci series that does not exceed the desired value.

Function description

The Fibonacci series is a sequence of ...