From Python's with to JavaScript's using and try/finally (Fast Track)

Stephen Gruppetta 14 Lessons 2h 14m Updated intermediate js py

Port the print shop’s with JobLock(job["id"]): to try/finally with the lock-taking call inside the try, and when another PC already holds job J-314’s lock, the finally deletes it, with no error.

This is the Fast Track version of From Python’s with to JavaScript’s using and try/finally, the shorter version for learners with more Python experience on the Intermediate and Advanced paths. You’ll port the same job runner and cover the same ground faster, with the same videos and shorter text lessons.

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

  • Clean up with try/finally, and tell what Node closes for you
  • Release a lock with using and your own disposables
  • Close connections with await using and an AsyncDisposableStack
  • Port the whole job runner to JavaScript

You’ll need Python’s context managers, async ones and ExitStack included, plus Node 26 and JavaScript classes, async functions, try and catch, and file reads and writes. The Python examples use Python 3.15.

The course mixes short videos and text lessons with exercises, a project, and a quiz.

What’s Included:

  • 14 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:

Project: The Print Shop's Job Runner

2 Lessons 23m

  1. 1. Porting the Job Runner05:35
  2. 2. Exercise: Finish the Job Runner18:00

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