Python’s generators and itertools are lazy, and the JavaScript array methods you already know aren’t. Port islice(valid(readings), 2) as .filter() followed by .slice(0, 2), and you get the same two readings, but JavaScript reads all six first. On a live feed that never ends, that port never finishes.
In this course, you’ll port a weather station’s Python feed, with its iterator class, filtering generator, islice(), and async for, to JavaScript one piece at a time.
By the end of this course, you’ll be able to:
- Write the full iteration protocol by hand, so
for...ofcan walk an iterator you wrote yourself - Write iterators with
function*generators, and send values into them - Chain lazy iterator helpers, such as
.drop()and.take() - Find JavaScript equivalents for the
itertoolsfunctions you use - Consume async feeds with
for await...of
You’ll need Python’s custom iterator classes, generators, itertools, and async for. You’ll also need Node 26 and JavaScript classes, arrow functions, array methods, and async functions with await. The Python examples use Python 3.15.
The course mixes short videos and text lessons with exercises and a quiz.
What’s Included:
- 12 Lessons
- Video Subtitles and Full Transcripts
- Translated Subtitles in 8 Languages
- 2 Downloadable Resources
- Interactive Quiz to Check Your Progress
- 3 Hands-On Coding Exercises
- Q&A With JavaScript Experts: Ask a Question
- Certificate of Completion
Downloadable Resources:
Related Learning Paths: