animaland then make a new object from that animal
dog( let dog = new animal). then the object chain will be:
Object <-- animal <-- dogwhere every object has a prototype , except
animalneeds to be a constructor function.
animalsprototype chain will be like:
null <-- Object.prototype <-- Function.prototype <-- animal
animal's prototype chain will be like:
null <-- Object.prototype <-- animal.prototype <-- dog
Since I have effectively cheated, I am wondering whether this signals that one might not be cut out for this. I had no idea that the hasOwnProperty object method, so didnt know what to search for and then checked the answer.