How to set up a javscript prototype

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**



Dog.prototype = {
constructor: Dog, // Solution

numLegs: 4,
eat: function() {
  console.log("nom nom nom");
},
describe: function() {
  console.log("My name is " + this.name);
}
};
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

Challenge: Remember to Set the Constructor Property when Changing the Prototype

Link to the challenge:

Remember to Set the Constructor Property when Changing the Prototype, what can i do?

try removing the comment

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.