Put me to understanding

**In this section, from what that s explained, i thought that the
function Dog(name) {
this.name = name,
this.numlegs = numlegs

can still share thesame property to ALL instance of Dog, when the prototype is not built.


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");

Hey there,

can you explain your problem/question a little more precisely?

what i meant is that , i thought that function constructors can still share the same property to ALL instance of Dog, even without using the prototype…
if you still don’t understand, directly explain to me more on use of function constructor and use of prototype.

as below code defines