JavaScript for Intermediate Pythonistas

Learning Path ⋅ Skills: JavaScript Types, Collections, Scope, Classes, Testing, Async, Modules

A developer holds up a TEST block beside a clay LEVEL UP press that lifts MAP and CLASS blocks a step higher, with a PROMISE block in the output tray.

This path is for Python programmers with intermediate experience who want to learn JavaScript as a career skill. You’ll start with fast-track versions of the foundation courses, then go deeper into types and equality, numbers, text and regular expressions, collections, scope and closures, classes, errors, testing, dates, and asynchronous code.

Every course starts from the Python you already know and spends its time on what’s different in JavaScript. You’ll practice with exercises and a quiz in each course, and with small projects along the way. If you’ve already completed the Beginner path, you can skip the fast-track versions of courses you’ve already taken.

JavaScript for Intermediate Pythonistas

Learning Path ⋅ 29 Resources

Is this path right for you? Mentor AI knows what’s in it and can help you decide where to begin.

Set Up JavaScript and Learn Its Shape

Start with fast-track courses that get JavaScript running on your computer, take you on a quick tour of the language from a Python point of view, and cover the syntax rules that differ from Python’s.

Title image for Getting Started With JavaScript for Pythonistas (Fast Track) (A developer turns a crank on a NODE engine beside a REPL screen, a package.json box, a console.log printer and a READY lamp.)

Course

Getting Started With JavaScript for Pythonistas (Fast Track)

Install Node and port a Python setup-check script to JavaScript in this faster version, and learn to run scripts, set up a project, and read JavaScript's errors.

Title image for A First Tour of JavaScript for Pythonistas (Fast Track) (A developer operates a bike-share report machine with gauges, bicycle cards and panels for names, arrays, strings and functions.)

Course

A First Tour of JavaScript for Pythonistas (Fast Track)

Get a quick first look at JavaScript by porting a small Python report, skipping what matches Python and focusing on what JavaScript does differently with names, strings, decisions, loops, functions, arrays, and objects.

Title image for JavaScript Syntax for Pythonistas (Fast Track) (A developer operates a syntax press stamping braces onto a release note, with semicolon blocks on a conveyor and panels for names and formatting.)

Course

JavaScript Syntax for Pythonistas (Fast Track)

Port a web agency's release-note script from Python to JavaScript in this shorter course, and learn how JavaScript's blocks, statements, line breaks, and names differ from Python's.

Pin Down Types and Equality

Next, you’ll see how JavaScript’s variables and types compare with Python’s, then go deeper into equality, type checks, and the conversions that surprise Python programmers.

Title image for JavaScript Variables and Types for Pythonistas (Fast Track) (A developer operates LET and CONST switches on a machine sorting strings and numbers beside a TYPEOF gauge.)

Course

JavaScript Variables and Types for Pythonistas (Fast Track)

The shorter version for experienced Pythonistas: port a Python backup check to JavaScript, and learn const, let, typeof, null and undefined, empty values, and ===.

Title image for JavaScript Equality and Type Checks for Pythonistas (A developer with a clipboard studies a brass balance scale comparing a thermometer and a number block, between type-sorting bins and a scanner.)

Course

JavaScript Equality and Type Checks for Pythonistas

Port a weather co-op's readings check from Python to JavaScript, and learn how JavaScript compares records, checks types and classes, and follows the rules of == and Object.is().

Work Precisely With Numbers

With types in place, you’ll work with JavaScript numbers, then handle precision, large integers with BigInt, and number formatting the way you would in Python.

Title image for JavaScript Numbers for Pythonistas (Fast Track) (An operator checks a coffee roasting machine with a bean scale and consoles labeled NUMBER, ROUND, and PARSE.)

Course

JavaScript Numbers for Pythonistas (Fast Track)

Port a coffee roastery's batch planner from Python to JavaScript in this faster version for experienced Python programmers, covering division, rounding, text input, and formatting.

Title image for JavaScript Number Precision, BigInt, and Formatting for Pythonistas (A developer holds up a €1,303.20 invoice beside a clay machine with a CENTS coin sorter, a long BigInt odometer under a euro money bag, an isFinite() gauge and a NumberFormat receipt printer.)

Course

JavaScript Number Precision, BigInt, and Formatting for Pythonistas

Port a coffee roastery's month-end invoice script from Python to JavaScript, and learn to keep money and big IDs exact, catch Infinity and NaN, and format numbers like Python.

Handle Text and Regular Expressions

Now you’ll move to text: JavaScript strings first, then regular expressions and text formatting, mapped onto what you already do with Python’s str methods and re module.

Title image for JavaScript Strings for Pythonistas (Fast Track) (An operator checks a letter-processing machine with a paper roll, slicer, and joining press labeled STRING, SLICE, and JOIN.)

Course

JavaScript Strings for Pythonistas (Fast Track)

Port a payments team's branch-name helper to JavaScript in this faster version, and learn where Python's string habits, from slicing to split() and join(), give the wrong text.

Title image for JavaScript Regular Expressions and Text Formatting for Pythonistas (A developer points at a magnifying lens on a RegExp tower that highlights PAY-2304 in a scrolling log, between a matchAll() intake, a replace() stamping arm and a padEnd() tray of aligned rows.)

Course

JavaScript Regular Expressions and Text Formatting for Pythonistas

Port a payments team's release-notes script from Python to JavaScript, and learn to line up text in columns and to test, extract, and rewrite text with JavaScript's regular expressions.

Store and Reshape Data

Next come collections. You’ll compare arrays with Python lists and plain objects with dicts, then copy, freeze, and sort arrays without the surprises that catch Python programmers.

Title image for JavaScript Arrays for Pythonistas (Fast Track) (A cheerful developer feeds name cards onto a rotating conveyor machine with PUSH, SHIFT, SPLICE and SORT panels and six numbered sorting slots.)

Course

JavaScript Arrays for Pythonistas (Fast Track)

Port a Python pager-rota script to JavaScript while building arrays, adding and removing at the ends, taking copies, editing in place with splice, searching, and sorting numbers.

Title image for From Dicts to JavaScript Objects for Pythonistas (Fast Track) (A smiling developer presses SET on a console beside a MAP cabinet of tagged drawers, while a KEY tag rides a conveyor in from an OBJECT tray of property cards.)

Course

From Dicts to JavaScript Objects for Pythonistas (Fast Track)

Port a Python label script to JavaScript while writing object literals, filling defaults with ??, reaching into nested data with ?., removing duplicates with a Set, and reading and writing JSON.

Title image for Copying, Freezing, and Sorting JavaScript Arrays for Pythonistas (A developer points at a tower where a robotic gripper reorders colored rows, beside a copier duplicating cards and a row frozen in ice.)

Course

Copying, Freezing, and Sorting JavaScript Arrays for Pythonistas

Port a five-a-side league's Python table script to JavaScript, and learn how to copy, freeze, and sort arrays and records without changing data you meant to keep.

Use Map, Set, and Smarter Conditionals

Building on objects, you’ll pick the right collection with Map and Set, then write conditions and port Python’s default values and match statements to JavaScript.

Title image for JavaScript Map and Set for Pythonistas (A developer organizes records in a machine with OBJECT, MAP, KEYS and VALUES trays.)

Course

JavaScript Map and Set for Pythonistas

Port a community garden's season report to JavaScript, and learn when to use a Map, a Set, or a plain object, and how to count, group, and compare without Counter or defaultdict.

Title image for JavaScript Conditionals for Pythonistas (Fast Track) (A smiling developer pulls an IF lever on a sorting machine that sends parcels down an ELSE chute or toward a SWITCH dial with CASE doors and a DEFAULT door.)

Course

JavaScript Conditionals for Pythonistas (Fast Track)

Port a Python race-day script to JavaScript while writing else if chains, choosing values with the conditional operator, combining conditions with && and ||, checking ranges, and matching values with switch.

Title image for Porting Python's Defaults and match Statements to JavaScript (A developer routes booking cards through a machine with AND, OR and DEFAULT gates into SEND and SKIP trays.)

Course

Porting Python's Defaults and match Statements to JavaScript

Port a community center's booking confirmations from Python to JavaScript, and learn to choose between || and ??, fill in missing values, port match statements, and call functions safely.

Loop, Write Functions, and Transform Arrays

With your data and decisions in place, you’ll write loops and functions in JavaScript, then replace Python’s comprehensions with array methods.

Title image for JavaScript Loops for Pythonistas (Fast Track) (A developer operates a looping bus dispatch conveyor that turns route cards into a night-bus report.)

Course

JavaScript Loops for Pythonistas (Fast Track)

Port a night-bus team's morning report to JavaScript in this faster version for experienced Python programmers, and learn where Python loop habits break, often silently.

Title image for JavaScript Functions for Pythonistas (Fast Track) (An operator feeds paper tickets into a function machine with INPUT, FUNCTION, and RETURN consoles.)

Course

JavaScript Functions for Pythonistas (Fast Track)

Port a freelance translator's quote script from Python to JavaScript in this shorter course, and learn how JavaScript functions return results, take defaults and options, and use arrows.

Title image for From Comprehensions to JavaScript Array Methods (A developer feeds race result cards into a machine labelled FILTER, MAP and REDUCE.)

Course

From Comprehensions to JavaScript Array Methods

Port a half marathon's Python results script to JavaScript, and learn the array methods, destructuring, and spread syntax that replace comprehensions and star unpacking.

Work With Scope and Split Code Into Modules

Next, you’ll look closely at how JavaScript scopes names, use closures and functional patterns, and split your code into modules and scripts.

Title image for JavaScript Scope, Closures, and Functional Patterns for Pythonistas (A developer pours shapes into a hopper feeding nested domes that hold a counter labeled CLOSURE, while capsules roll out under a bell and a clock.)

Course

JavaScript Scope, Closures, and Functional Patterns for Pythonistas

Port a bouldering gym's front-desk script to JavaScript, and learn where names live and when they exist, how closures keep state, and how to work with rest parameters, callbacks, and timers.

Title image for JavaScript Modules and Scripts for Pythonistas (Fast Track) (An operator checks a modular machine with a cable socket and paper consoles labeled IMPORT, ARGV, and READ.)

Course

JavaScript Modules and Scripts for Pythonistas (Fast Track)

The shorter version for experienced Pythonistas: port a Python boiler log digest to JavaScript, and learn modules, script arguments, exit codes, and reading and writing files.

Model Data With Classes and Handle Errors

Now you’ll read and debug JavaScript errors, model your data with classes the way you would in Python, and handle errors in depth with your own error types.

Title image for JavaScript Errors and Debugging for Pythonistas (Fast Track) (A developer sorts donation cards with a TRY, CATCH, and ERROR checking machine.)

Course

JavaScript Errors and Debugging for Pythonistas (Fast Track)

Port a food bank's donation import to JavaScript in this faster version, and learn to catch, throw, and tell apart errors, and check for the bad data JavaScript doesn't throw on.

Title image for JavaScript Classes for Pythonistas (A developer cranks a constructor console feeding blank cards into a class Pass press, whose cards split onto two extends conveyors beside a static dial and a padlocked #private drawer.)

Course

JavaScript Classes for Pythonistas

Port a swimming pool's booking module from Python to JavaScript, and learn constructors, fields, private state, static members, subclasses, and methods that keep their this.

Title image for JavaScript Error Handling in Depth for Pythonistas (A developer diagnoses warning cards using a machine labelled TRY, CATCH and FINALLY.)

Course

JavaScript Error Handling in Depth for Pythonistas

Port a food bank's all-or-nothing donation import from Python to JavaScript, and learn to define error classes, chain errors with cause, report many errors at once, and use a debugger.

Test Your Code and Work With Dates

With larger programs in place, you’ll test them the way you’d use pytest in Python, and work with dates, times, and time zones.

Title image for JavaScript Testing for Pythonistas (A developer presses a Run button on a testing machine that scans skis and a ski boot, with panels labeled Test, Assert, Mock and Await.)

Course

JavaScript Testing for Pythonistas

Port a ski-hire shop's pytest suite to JavaScript, and learn to test with Node's built-in runner: assertions, errors, many cases, shared setup, async code, and mocks.

Title image for JavaScript Dates and Times for Pythonistas (A developer turns a calendar dial on a clock machine that converts dates between UTC and local time and prints reminders.)

Course

JavaScript Dates and Times for Pythonistas

Port a physio clinic's Python reminder script to JavaScript, and learn to read older Date code, then use Temporal for time zones, durations, and formatting times for people.

Write Asynchronous Programs and Structure Projects

Finally, you’ll write asynchronous code with promises and async functions, organize projects with ES modules and CommonJS, and clean up resources the way Python’s with statement does.

Title image for Async JavaScript for Pythonistas (A developer presses launch on an async console that races three balls up glass tubes into a Promise.all collector, beside a TIMEOUT stopwatch and an await tray.)

Course

Async JavaScript for Pythonistas

Port a library's asyncio holds check to JavaScript, and learn async functions without asyncio.run(), the promises behind await, Promise.all(), timeouts, and retries.

Title image for From Python Packages to JavaScript Modules: ESM and CommonJS (A developer feeds a module into a connected machine labeled Import, ESM, Module, CJS, and Export on a blue background.)

Course

From Python Packages to JavaScript Modules: ESM and CommonJS

Organize larger JavaScript programs with ES modules, shared state, dynamic imports, and CommonJS while porting a Python heating digest.

Title image for From Python's with to JavaScript's using and try/finally (A developer operates a print-job machine with an open lock, paper conveyors and panels labeled Acquire, Use and Release.)

Course

From Python's with to JavaScript's using and try/finally

Port a print shop's job runner from Python to JavaScript, and learn to clean up locks, files, and connections with try/finally, using, await using, and disposable stacks.

Test Your Knowledge

You’ve made it through the whole path! In the wrap-up quiz below, you’ll revisit equality and type checks, numbers and text, collections, scope and closures, classes and errors, testing, and asynchronous code. Use it to spot any topics that still feel rusty.

Title image for JavaScript for Intermediate Pythonistas (A developer holds up a TEST block beside a clay LEVEL UP press that lifts MAP and CLASS blocks a step higher, with a PROMISE block in the output tray.)

Interactive Quiz

JavaScript for Intermediate Pythonistas

Check what you've learned about JavaScript as an intermediate Pythonista, from equality and numbers to classes, tests, and async code.

Congratulations on completing this learning path! You can now write JavaScript programs that use the right types and collections, organize code into modules and classes, handle errors, test your work, and run asynchronous tasks, applying what you know from Python at every step.

You might also be interested in these related learning paths:

Got feedback on this learning path?

Looking for real-time conversation? Visit the RealJS Community Chat or join the next “Office Hours” Live Q&A Session. Happy coding!

« Browse All Learning Paths