Modern JavaScript: Iterators and Generators

Offered By
Coursera Project Network
In this Free Guided Project, you will:

Learn how to make your data structures iterable

Create generators for producing finite and infinite sequences on-demand

Use generators as observers

Showcase this hands-on experience in an interview

Clock2 hours
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

JavaScript Iterators and Generators bring the concept of iteration directly into the core language and provide a mechanism for customizing the behavior of for...of loops. In this project, you'll master the JavaScript Iterators and Generators with live hands-on exercises. We'll learn about iteration protocols, the built-in constructs that provide support for them and how to make our own data structures iterable.


Experience with JavaScript

Skills you will develop

Computer ProgrammingES6JavaScriptFront-end web

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Iteration protocols

  2. Built-in constructs supporting iterables

  3. Custom iterators

  4. Generators

  5. Lazy sequence generation

  6. Passing parameters and generators as observers

  7. Delegating execution

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.