Tell us what’s happening:
Your code so far
function Dog(name, color) {
this.name = name;
this.color = color;
this.numlegs = 4;
}
let terrier = new Dog("Bruce", "red");
I thought numlegs was inherited from Dog & i don’t see a way to add it to the new dog, terrier, since it is hard coded as an interger in the constructor. Please explain & where can I find more information about this as I have spent several hours looking for it to no avail.
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/object-oriented-programming/extend-constructors-to-receive-arguments