https://wikibook.co.kr/mjs/
P.271
function Person(name) {
this.name = name;
}
const me = new Person('Lee');
console.log(me.__proto__ === Person.prototype); // true
P.272
console.log(me.constructor === Person); // true
console.log(me.__proto__.constructor === Person); // true
상속
Person.prototype.sayHi = function () {
console.log('Hi: ' + this.name);
}
const you = new Person('Lyu');
me.__proto__
you.__proto__.sayBye = function () {
console.log('Bye: ' + this.name);
}
Person.prototype