Understand Where an Object’s Prototype Comes From 2

Tell us what’s happening:
The feedback tells me that .isProtoTypeOf is undefined.

Your code so far


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

let beagle = new Dog("Snoopy");

// Add your code below this line
beagle.prototype.isPrototypeOf(Dog);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36 OPR/62.0.3331.116.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/object-oriented-programming/understand-where-an-objects-prototype-comes-from

You’ve got it backwards, which is a prototype of which.

3 Likes