1, the class is a design pattern, many languages provide for the class-oriented software design of the native syntax, JS also has a similar syntax, but it is completely different from the classes in other languages.
2. Class means copy
3. JS does not automatically create a copy of the object as if it were a class.
4, in the case of inheritance or instantiation, JS object mechanism does not automatically perform replication behavior, in short, JS only objects, there is no class can be instantiated. An object is not copied to other objects, and they are associated.
5, Mixed mode (whether explicit or implicit) can be used to simulate the replication behavior of the class, but often produce ugly and fragile syntax, such as explicit pseudo polymorphism, which makes the code more difficult to understand and difficult to maintain.
Explicit mixing there is no way to emulate the replication behavior of a class, because objects can only copy references, cannot copy referenced objects, or the function itself. If you modify a shared function object, such as adding an attribute, both the parent and child classes are affected.
6, in general, in JS simulation class is not worth the candle, although can solve the current problem, but there will be more hidden trouble
You don't know. js-Mixed Object-Class