What are the practical differences between Mixins and Inheritance in Javascript?
问题 Is just (simulating) multiple inheritance the only advantage of mixing: Object.assign( MyClassA.prototype, MyMixinB ) versus inheritance class MyClass extends MyClassB { // MyClassB = class version of MyMixinB in ES6 Javascript? Thanks 回答1: There will be not that one short answer. The practicality comes with the many different technical approaches (and how one combines them) that JavaScript (JS) does offer for building type/object systems. First, as the OP (original poster) already is aware