Loading video player…

Welcome to Running JavaScript

You already know Python. This course gets JavaScript running on your computer, and starts you on the ways JavaScript does things differently. Here’s a first taste: one line of a setup-check script, with platfrom typed instead of platform. First in Python:

Language: Python
print("OS:", sys.platfrom)

Python stops with an AttributeError and asks whether you meant .platform. Here’s the same slip in a JavaScript port of the script:

Language: JavaScript
console.log("OS:", process.platfrom);

When you run it, it prints its report without an error:

Language: Program Output
Node 26.13.0
OS: undefined
Folder: /Users/you/onboarding-check

That undefined is JavaScript’s way of saying there’s no value there, and you’ll get to know it well in this course. Some JavaScript reads close to the Python you know, but other parts follow their own rules, and they change what happens when something goes wrong. This course shows you why the port ran without an error, and how you’d spot the slip.

JavaScript runs in every browser and in several runtimes, such as Node, Deno, and Bun. This course uses Node, a common way to run JavaScript outside the browser.

You’ll work on a project to learn the key concepts in this course. You’ll help a small product team whose new developers run a setup check on their first morning. It prints their language version, operating system, and current folder, then the team’s next steps, and they paste the output into the onboarding channel. The team is moving its tools to Node, and you’ll port the check to JavaScript, one piece at a time.

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

  • Install Node and try JavaScript in its REPL
  • Run a JavaScript script and print with console.log() instead of print()
  • Make a folder a project with a package.json, and know what that changes
  • Read a JavaScript stack trace, which runs the other way up from a Python traceback
  • Recognize undefined when a slip produces it, and find the line that caused it
  • Port a small Python script to JavaScript and run it

To start, you only need to know how to run a Python script and use Python’s REPL. You don’t need to know any JavaScript yet, and you don’t need Node: the next lesson installs it. The examples use Node 26 and Python 3.15, and a current version of each is fine.

The course mixes short videos and text lessons, with exercises where you write the code yourself. Every video has a summary below it, so you can review without rewatching. A project puts the setup check together, and a quiz and a summary close the course.

Next up: Installing Node, where you install Node and check that it runs.

Download

Sample Code (.zip)

4.6 KB
Download

Course Slides (.pdf)

637.9 KB

00:00 Welcome to Getting Started With JavaScript for Pythonistas! You already know Python. This course gets JavaScript running on your computer, and starts you on the ways JavaScript does things differently.

00:12 You’ll work on a project to learn the key concepts in this course. It’s a small product team’s setup check, the script their new developers run on their first morning, and you’ll port it to JavaScript.

00:24 Here’s a first taste. Here’s a Python setup check. Say you mistype one name: platfrom instead of platform. Python stops, with a hint at the fix.

00:39 Here’s the JavaScript port, with the same slip. It runs to the end, and prints undefined where the operating system should be. That’s JavaScript’s way of saying there’s no value there, and you’ll get to know it well in this course.

00:54 No error. Why? And how would you have spotted it? This course answers both. Some JavaScript reads close to the Python you know, but other parts follow their own rules, and they change what happens when something goes wrong.

01:13 JavaScript runs in every browser and in several runtimes. This course uses Node, a common way to run JavaScript outside the browser. The team’s new developers run this check on their first morning.

01:27 It prints their version, operating system, and folder, then the next steps. The team is moving to Node, so you’ll port it, one piece at a time.

01:39 By the end, you’ll install Node and try its REPL, run a script, make it a project, and read its errors, even the quiet ones. Then the project rebuilds the whole setup check.

01:53 To start, you only need to know how to run a Python script and use Python’s REPL. You don’t need to know any JavaScript yet, and you don’t need Node: the next lesson installs it.

02:06 Short videos like this one mix with text lessons and exercises, and every video has a summary below it. A project puts it together, and a quiz and a summary close the course.

02:19 Next up is Installing Node, a text lesson.

Become a Member to join the conversation.