重置一个已继承的constructor属性
function Animal() { }
function Bird() { }
function Dog() { }
Bird.prototype = Object.create(Animal.prototype);
Dog.prototype = Object.create(Animal.prototype);
// Add your code below this line
Bird.prototype.constructor = Bird ;
Dog.prototype.constructor = Dog;
let duck = new Bird();
let beagle = new Dog();
console.log(duck);