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
usingand your own disposables - Close connections with
await usingand anAsyncDisposableStack - 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: