@ovirex I am inclined to agree other than the fact that the above comment appears below the Dog function, which would mean the only place to add the bark method would be the Dog’s prototype.
That being said, I do think the wording could be made clearer with the following change to the instructions:
and the following change to the third test:
Add all necessary code so the
Dogobject inherits fromAnimaland theDog'sprototypeconstructor is set to Dog. Then add abark()method toDog’s prototype so thatbeaglecan botheat()andbark(). Thebark()method should print “Woof!” to the console.
Dog should have a bark method that is a prototype property.
What do you think?