JavaScript Map and Set for Pythonistas (Fast Track)

Stephen Gruppetta 17 Lessons 2h 56m Updated intermediate js py

Take the first key of a JavaScript object keyed by member number, as you would a Python dict’s, and you get the smallest number, not the first person who asked: Object.keys() puts number-like keys in numeric order, with no error.

In this course, you’ll port Rosa’s Python season report for the Brook Street Community Garden to JavaScript. This is the Fast Track version of the course, for learners with more Python experience, and it’s the one on the Advanced path. It covers the same ground faster, in shorter lessons.

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

  • Choose between a Map and a plain object, and update a Map
  • Count and group without Counter or defaultdict
  • Combine and compare Sets with union(), intersection(), and isSubsetOf()
  • Build and deep-copy nested Maps and Sets
  • Put the whole season report together in JavaScript

You’ll need Python’s dicts, sets, Counter, and defaultdict, plus Node 26 and JavaScript objects, Object.keys() and Object.entries(), Sets, arrow functions, ??, and structuredClone(). The Python examples use Python 3.15.

Short videos and text lessons mix with exercises, a project that ports the season report, and a quiz.

What’s Included:

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

Downloadable Resources:

Related Learning Paths:

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