"It looks like you didn't properly add a 'meow' method to the Cat prototype"


#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
cat.prototype.meow = function() {
    console.log("Meow");
};

// add code here to make the cats meow!
cheshire.meow();
gary.meow();

How sway?! (Kanye voice)


#4

the Cat object has an uppercase first letter, when you use prototype you forgot to make the c uppercase (variable, function, object names) are all case sensitive.


#7

I did that initially, and then this happened:

But wait, I think I see the problem here. :joy:

tests hypothesis

Yup -- my "Meow" need to have "Meow!" -- so the exclamation mark was missing. Thank you, everyone who helped.


#8