Object Creation Methods
What object creation pattern does this represent?
const proto = {
init(name) {
this.name = name;
return this;
},
greet() {
return `Hello, ${this.name}`;
}
};
const person = Object.create(proto).init('John');