Prototype Practice.... lesson glitched


this code initially passed an error but the save code button pushed to next lesson so i go back and review and press it again and this time no push through lesson but it errors now.... everything seems according to the lesson instructions.

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



this comes up now


This should be outside of the constructor function.


thank you
check out this next lesson. also passed but console error'd


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