20 Not working


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


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


// create your Emperor class

// create an "emperor" object


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


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