Penguins, Properties and the Prototypes


#1



Replace this line with your code. 
function Penguin(name) {
    this.name = name;
    this.numLegs = 2;
}

// create your Emperor class here and make it inherit from Penguin
function Emporer(name) {
    this.name = name;
};

Emporer.prototype = new Penguin();
// create an "emperor" object and print the number of legs it has
var emporer = new Emporer("X");
console.log(emporer.numLegs);


#2

Oh nevermind I can't spell...


#3