Please help me 20/30


#1

keeps telling me "Oops, try again. Make sure to properly define the Emperor constructor!"

here is my code:

function Pingouin(nom){
this.nom = nom;
this.nombrePattes = 2;
}

// creez votre classe Empereur ici et faites la hériter de Pingouin
function Empereur(nom){
this.nom = nom;
}

Empereur.prototype = new Pingouin();

// creez un objet "empereur" et affichez son nombre de pattes

var empereur = new Empereur("Gilgamesh");
console.log(empereur.nombrePattes);


#2

nevermind found mistake


#3

Pls delete the post of the correct code. As other people will take advantage over it and just copy your code to pass the task. Thankyou