Object Creation Methods
What object composition pattern is shown here?
const mixin = {
sayHi() { return `Hi, ${this.name}`; },
sayBye() { return `Bye, ${this.name}`; }
};
class Person {
constructor(name) {
this.name = name;
}
}
Object.assign(Person.prototype, mixin);