Port Riverside Pool’s Python booking module to JavaScript in this compact course for experienced Python programmers. Follow its swimmers, ten-swim cards, memberships and two-lane Early Lanes session as you focus on the class behaviors that change in the port.
By the end of the course, you’ll be able to:
- Port Python classes and dataclasses to JavaScript constructors and fields.
- Protect instance state with private fields and accessors, and share prices and factories with static members.
- Extend classes, print instances, and copy them while preserving their behavior.
- Pass methods as callbacks and complete the pool passes module.
You should already know Python classes well: __init__, methods, properties, class and static methods, inheritance with super(), and dataclasses. In JavaScript, you should already write functions, arrow functions, callbacks and options objects, copy data with structuredClone() and JSON, and throw errors.
Use a current version of Node.js and Python. The examples use Node 26 and Python 3.15.
The course combines short videos and text lessons with five coding exercises and a module port. Every video has a summary below it. A quiz and a course summary close the course.
Next up: Porting a Class to constructor and this.