Assemble Swimmer, Pass, TenSwimCard and Membership using explicit constructors, per-instance fields, private state, static fields and a factory. Call super(swimmer) before this in each subclass, and use super.checkIn() in the card’s override.
Print each pass through a template literal so toString() supplies its line. Read the price through the class name. Run node --check pool-passes.js, then node pool-passes.js. This video’s first part prints four lines:
Priya Nair (adult): ten-swim card, 3 left
Tom Hale (concession): membership, 6 months
Grace Obi (junior): ten-swim card, 10 left
Ten-swim card: £4.50 a swim
Finish the Pool Passes Module adds the Early Lanes bookings and Tom’s renewal preview on a copy. That exercise produces the complete nine-line result while the membership on file stays at six months.