function Dog(name) {
this.name = name;
this.numLegs=2
}
// Add your code above this line
let beagle = new Dog("Snoopy");
Dog.numLegs()=function(){
return this.beagle;
}
console.log(beagle.numLegs);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.
Why are you adding all of the above? You are supposed to be adding a numLegs property to the prototype of Dog. Look at the example code where they added a numLegs property to the prototype of Bird for guidance.