Dog's Own Properties

Hey, been reviwing a few things before going foward in the course and found this. Not hard, but this exercise asks you to add the bark method as an OWN property, and then in the solution it adds in the prototype of Dog. Am I wrong or adding a property and/or a method to the prototype does not make it an own property?

function Animal() { }
Animal.prototype.eat = function() { console.log("nom nom nom"); };

function Dog() {}

// Only change code below this line
Dog.prototype = Object.create(Animal.prototype);
Dog.prototype.constructor = Dog;
Dog.prototype.bark = function(){console.log("Woof!")};
// Only change code above this line

let beagle = new Dog();


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0.

Challenge: Add Methods After Inheritance

Link to the challenge:

Object.prototype.hasOwnProperty doesn’t look at prototype properties and methods.