20. Penguins, Properties and the Prototype


#1

Can anyone tell me whats wrong with my code?


function Penguin(name) {
    this.name = name;
    this.numLegs = 2;
}

function Empreror(name) {
    this.name = name;
};

Emperor.prototype = new Penguin();

emperor1 = new Emperor("Güry");

console.log(emperor1.numLegs);


#2

from the instructions:

Create an Emperor class

It seems you misspelled Emperor.


#3

facepalm.................


#4