JavaScript Loops for Pythonistas

Stephen Gruppetta 16 Lessons 2h 38m Updated basics js

JavaScript’s loops look familiar to a Python programmer, and that’s the trouble: loops are where Python habits trip you up, often without an error. Port Python’s for delay in delays: to JavaScript, keep the word in, and JavaScript prints the positions 0, 1, and 2 instead of the delays.

In this course, you’ll port a night-bus operations team’s morning report from Python to JavaScript, one loop at a time.

By the end of this course, you’ll be able to:

  • Loop over items with for...of, and tell it apart from for...in
  • Count without range() using the classic for loop
  • Loop with while and do...while, and search without for...else
  • Loop over positions, pairs, objects, and Maps
  • Spot a Python habit in a JavaScript loop, whether you or an AI assistant wrote it

You’ll need Python loops, enumerate(), zip(), and looping over a dictionary, plus Node 26 and the JavaScript basics: const and let, arrays, and objects. The Python examples use Python 3.15.

The course mixes short videos and text lessons with exercises, a project that ports the whole report, and a quiz.

What’s Included:

  • 16 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 2 Downloadable Resources
  • Interactive Quiz to Check Your Progress
  • 4 Hands-On Coding Exercises
  • Q&A With JavaScript Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

Getting Started

1 Lesson 1m

  1. 1. Welcome to the Night-Bus Report01:51

About Stephen Gruppetta

Stephen obtained a PhD in physics and worked as a physicist in academia for over a decade before becoming a programming educator. He's constantly looking for simple ways to explain complex things.

» More about Stephen

← Browse All Courses