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.


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




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



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