16. Its all in the genes


The function works but doesn't let me pass to the next exercise. It does log the right message to the console however it says it doesn't. I don't know why

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


Hi your string in the sayName nethod should be

"Hi my name is " + ..

instead of

"Hi, my name is " + ..


It worked thanks
stupid mistake