Factory & Constructor Functions
What issue might arise with this constructor chain?
function Animal(name) {
this.name = name;
}
function Dog(name, breed) {
Animal(name);
this.breed = breed;
}
const dog = new Dog('Rex', 'German Shepherd');
console.log(dog.name);