I could not find mistake here and need help


#1

function Cat(name, breed) {
this.name = name;
this.breed = breed;
}

// let's make some cats!
var cheshire = new Cat("Cheshire Cat", "British Shorthair");
var gary = new Cat("Gary", "Domestic Shorthair");

// add a method "meow" to the Cat class that will allow
// all cats to print "Meow!" to the console

// add code here to make the cats meow!


#2

But in this exercise they are trying to encourage you to think about

J a v a S c r i p t and it's == p r o t o t y p e - C h a i n ==

They want you to set up the chain:

        OBJECT
  Object.prototype
           ^
           |
  Cat.prototype ((meow Method))  Cat.prototype.meow =
           |                      function() { console.log("Meow!"); };
           ^         
           |          Cat Class-constructor
           |              with this constructor
           |              you can create Instance's of Cat
           |                |
           |                V
           |              using new Cat("aName","aBreed");
           |                |
           |                V
           |            /Instance's / 
           |            | of      |
           |            | Cat |
           ^     The Cat-Instance has access
           |     to Cat.prototype.meow Method
           |     via the Cat-prototype which is
           ^     -chained- to the Cat-prototype.
           |
      + - -+- - - - -+
      |              |
 cheshire          gary
 Instance         Instance