#15 What am I missing?


#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
Cat.prototype.meow = function ("meow") {
};
// all cats to print "Meow!" to the console
console.log("meow");
// add code here to make the cats meow!
object.method()

#2

what do you want to d in the body of your meow function.

Also

cannot have a string objects as parameter

here they are just showing you how to call methods on object it is not valid code


#3

Thank u I understand now.


#4

Cat.prototype.meow = function() {
console.log("Meow!");
}
// add code here to make the cats meow!
cheshire.meow();
gary.meow();

Don't forget to add the explanation point on Meow...
I sat here for 25 minutes scratching my head wondering why it logged meow to the console, but it said I didn't log it properly....GRRRRR!!!!


#5

And dont forget before calling the function you have to make a new chat instance like this:

Chat chesire = new Chat();

#6