O'Reilly logo
  • Karl Giesing thinks this is interesting:

class syntax does not provide a way to declare class member properties (only methods). So if you need to do that to track shared state among instances


Cover of You Don't Know JS: this & Object Prototypes


This is a pretty bad example, since "class member properties" are actually static fields. As the name suggests it is kept in static memory. One more example of how instantiation isn't "copying."