Prototype Pratice


Why am i getting this error (SyntaxError: Unexpected end of input)... what is wrong with my code? Please help!

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

// 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!


this line:

function Cat(name, breed) {

the { doesn't have a matching closing curly bracket (})


OMG! thank you dude!!