Understand the Constructor Property?

Understand the Constructor Property?
0.0 0

#1

Tell us what’s happening:

There is a special constructor property located on the object instances duck and beagle that were created in the previous challenges:

Is the constructor property not stored on the prototype, i.e. the constructor function’s prototype, (as opposed to on the instance itself) ?

Your code so far


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

// Add your code below this line
function joinDogFraternity(candidate) {
  
}

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/object-oriented-programming/understand-the-constructor-property/


#2

Interesting question. Apparently the answer is no. The constructor is stored in each object created with new.
Here’s my reference