JavaScript, Object Oriented, Technology, Oop.
Those references are live, so if the state changes in the containing function, in changes for every privileged function with access to the reference. In other words, when we call counter.click(), it changes the value that counter.getCount() sees. It’s even possible to inherit private state using