Passing a function to a timer looks the same in Python and JavaScript, but the rest of the line can change meaning. Python’s threading.Timer(600, remind) waits 600 seconds. Port it as setTimeout(remind, 600), and the reminder that the evening class ends soon arrives after 0.6 seconds, nearly ten minutes early, with no error.
In this course, you’ll port the Python script a bouldering gym’s front desk runs as it checks climbers in, hands out numbered wristbands, and fills its classes.
By the end of this course, you’ll be able to:
- Say which variable a name means and when it exists, and read old code that uses
var - Keep state in closures, and make functions in a loop without workarounds
- Take any number of arguments with rest parameters, and options you didn’t name
- Pass callbacks and set timers with
setTimeout() - Build functions from functions where Python reaches for
functools.partial - Port the whole front-desk script to JavaScript
You’ll need Python’s scope rules (LEGB and global), closures with nonlocal, lambdas, *args and **kwargs, callbacks, and functools.partial, plus Node 26 and JavaScript functions with default parameters, options objects, and arrows, and array methods such as map() and reduce(). The Python examples use Python 3.15.
The course mixes short videos and text lessons with exercises, a project that ports the whole front-desk script, 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: