15/30


#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();

What im doing wrong?


#2

Nothing, if you run your code it should be accepted.

If not refresh your site and/or clear the chache.


#3

Ok refresh helps, thx :wink:


#4

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