15/30


#1

this is my code but its not running well i get an error instead what could be the problem

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");

Cat.prototype.meow = function() {
  console.log("meoow");// 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!
}
cheshire.meow();
gary.meow();

#2

the problem is in this lines:

Cat.prototype.meow = function() {
  console.log("meoow");
}

you console.log("meoow"); while it should be Meow! with capitalized M, one o, and a exclamation mark.


#3

thanks alot it has worked now