Object.create 사용법 - Object.create(연결시킬 객체의 프로토타입) - ex) const PersonProto = { calcAge(){ console.log(2037 - this.birthYear) } } const p1 = Object.create(PersonProto); - PersonProto와 p1이 prototypal inheritance로서 연결되어 있음 - 이 때, p1은 현재 빈 객체 cf> new Person() vs Object.create() 1) 연결시킬 prototype를 정할 수 있음 const p1 = new Person()의 경우에 p1은 Person의 프로토타입과 자동으로 연결되지만, Object.create는 연결시킬 프로토타입 객체를 정할 수 있음