Why duplicates?

Tell us what’s happening:
The reading explains you would have duplicates, Why? and so why push properties in again?

Your code so far

function Dog(name) {
this.name = name;

Dog.prototype.numLegs = 4;

// Only change code above this line
let beagle = new Dog("Snoopy");

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36.

Challenge: Use Prototype Properties to Reduce Duplicate Code

Link to the challenge: