A JavaScript field gives each instance an initial value. It doesn’t turn arguments into properties: write a constructor to accept name and group = "adult", then assign them to this.
Keep swims = 0; in the class body when every pass starts with zero swims. A field such as log = []; creates a new array for each instance, unlike a Python list stored as a class attribute. JavaScript’s console view doesn’t supply a dataclass’s equality behavior.
Next, fix the constructor, fields and methods in Port the Lane Bookings.