What's wrong with this code?


Replace this line with your code. 
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


seems ok, what is the error?

try adding a TAB before "console.log("Meow!");


It's a typo in Cat.protoype.meow=function(){. You are missing t in .protoype. I've done the same a few times....


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.