15. Prototype Practice


  1. Prototype Practice.

Hello, i think my code is correct but it seems that the console don't want my "meow"...
I have the error "Oops, try again. It looks like your meow method doesn't properly log to the console 'Meow!' "

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(){

// add code here to make the cats meow!



i assume the full stop here is copy paste mistake?

Meow! requires an exclamation mark


Yep it was a copy paste mistake .

Oh thanks that was this.. Thanks for your rapid answer.