JavaScript, Functional Programming, Web Development, State Encapsulation, Javascript State.
suggests the traditional classical inheritance pattern. Some prior art regarding class and classical inheritance issues with Javascript: 10 Interview Questions Every Javascript Developer Should Know by Eric Elliott Composition Over Inheritance by FunFunFunction See also Douglas Crockford’s talk