79763821

Date: 2025-09-13 16:28:08
Score: 0.5
Natty:
Report link

You should add one line of code after setting a prototype that returns constructor to correct state

Animal.prototype = Object.create(Creature.prototype);
Animal.prototype.constructor = Animal; // this


Dog.prototype = Object.create(Animal.prototype);
Dog.prototype.constructor = Dog; // and this
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nugzar Gagulia