20 Not working


#1

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

// create your Emperor class here and make it inherit from Penguin
function Emporor(name) {
this.name = name;
};
Emporor.prototype = new Penguin();
// create an "emperor" object and print the number of legs it has
var emporor = new Emporor("g");

console.log(emporor.numLegs);

It's telling me I need to properly define the Emporor constuctor.
Can someone tell me what I am doing wrong?
Please help!


#2

// create your Emperor class

// create an "emperor" object


#5

Spelled 'emperor' incorrect..
I did it by accident too :slightly_smiling:


#6

It happens. We're all in the same boat in that respect.