20/30


#1

What is the answer, the full code? I have tried everything here and the only topic related to it has not helped me figure out the code. I am thinking the editor is once again broken.


#2

Apparently this works.

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

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

Emperor.prototype = new Penguin(); // notice no arguments

var emperor = new Penguin("Napolean");

console.log(emperor.numLegs);


#3

omicroniangeek,

I had the same issue as well. I switched browsers, from Chrome to Firefox, and it worked.

Jace


#4

Same here. This code worked but mine didn't.