Penguins, properties and prototypes - stuck on 'properly define the Emporer Constructor'


#1

I'm on Penguins, properties and prototypes lesson in Javascript language.
The below code throws the error of:
'Make sure to properly define the Emporer constructor'
In reading the forum, it was suggested to refresh the browser, or try a new tab, both of which I've done. If there is an error in the code, I can't see it and it appears to be correct according to other forum posts. Anyone have any ideas what is wrong with the Emporer constructor?

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

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

Emporer.prototype = new Penguin();

var bird = new Emporer("buddy");
console.log(bird.numLegs);


#2

Is it really spelled that way? What's the link to the exercise?


#3

Hello,
Not sure what spelling you are referring to, here's the link to the exercise though:
https://www.codecademy.com/courses/objects-ii/3/5?curriculum_id=506324b3a7dffd00020bf661#
Thanks!


#4

It says to make sure you defined something, you used a different name.


#5

What he is trying to say is:

You spelled "emperor" wrong. Spell it the way I just did, and that should fix the error.


#6

Thanks, using 'Emperor' with a capital E fixed it.