16/30 somebody help me


#1

i think i'm write a right code
buy error message is printed out

i don't know what is wrong.
please teach me.

// create your Animal class here
function Animal(name, numLeg) {
this.name = name;
this.numLeg = numLeg;
}

// create the sayName method for Animal
Animal.prototype.sayName = function() {
console.log("Hi my name is " + this.name)
}

// provided code to test above constructor and method
var penguin = new Animal("Captain Cook", 2);
penguin.sayName();


#2

I believe the instructions ask for numLegs. Perhaps this is the issue.


#3

gooooood!!
I'm confused in almost 20 min.
thank you very much again.

yesterday you helped me actually.