Skip to Content
JavaScript Advanced: Code That Holds Up in Production
Advanced
0 likes
Courses
JavaScript Advanced: Code That Holds Up in Production

Check Yourself: Data That Doesn't Fit in Memory

Five scenario questions on iterators, generators and streams. If you miss more than one, reread the lesson that covers it.

Course content

Sign in to save your progress.

Course Home
1. You loop over a generator object with for...of, then try to loop over the same object again. What happens the second time?
2. An async generator fetches pages 1, 2, 3 and yields each item. The loop breaks on the second item of page 1. How many pages were fetched?
5. A stream reads a 4 GB CSV line by line, but pushes every row into an array and sums it at the end. Memory runs out. Why?

About

Five scenario questions on iterators, generators and streams. If you miss more than one, reread the lesson that covers it.

Duration
5 min
Last update
08/25/2026
Was this helpful?
​ 0 ​ 0

Comments (0)

Sign in to comment

No comments yet.