20/30 The code passes through, but I keep getting the error message


#1



https://www.codecademy.com/courses/objects-ii/3/5?curriculum_id=506324b3a7dffd00020bf661#


The console says 2, but I keep getting the message: Oops, try again. Make sure to properly define the Emperor constructor!


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("James Hollingsworth");
console.log(emporer.numLegs);


#2

Spelling


#3

spelling Emperor right is very important