The code shows the right output but I'm unable to proceed


#1

This is my code:

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

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

Nevermind, I got it, it was because of a comma that I couldnt proceed :sweat: