A static field belongs to the class. Read TenSwimCard.PRICE and TenSwimCard.SWIMS; an instance’s this.PRICE is undefined, so the attempted calculation produces NaN.
Use static fromRecord(record) to build a card from saved data. Call TenSwimCard.fromRecord(saved), since the factory isn’t an instance method. Here the factory names TenSwimCard explicitly; it doesn’t receive Python’s implicit cls argument.
Next, repair private state, a getter and a class-owned fee in Price a Membership Renewal.