
04. Factory functions and shared behavior
Design factory functions producing consistent object models, encapsulate private instance state via lexical closures, avoid prototype overhead for low-cardinality models, and compare factory returns with constructor delegation.
Nov 10, 2026










