了解原型链
function Dog(name) {
this.name = name;
}
let beagle = new Dog("Snoopy");
Dog.prototype.isPrototypeOf(beagle);// => true
// Fix the code below so that it evaluates to true
Object.prototype.isPrototypeOf(Dog.prototype);
function Dog(name) {
this.name = name;
}
let beagle = new Dog("Snoopy");
Dog.prototype.isPrototypeOf(beagle);// => true
// Fix the code below so that it evaluates to true
Object.prototype.isPrototypeOf(Dog.prototype);