It worked but?


#1
// original classes
function Animal(name, numLegs) {
    this.name = name;
    this.numLegs = numLegs;
    this.isAlive = true;
}
function Penguin(name) {
    this.name = name;
    this.numLegs = 2;
}
function Emperor(name) {
    this.name = name;
    this.saying = "Waddle waddle";
}

// set up the prototype chain
Penguin.prototype = new Animal();
Emperor.prototype = new Penguin();

var myEmperor = new Emperor("Jules");

console.log("Waddle waddle"); // should print "Waddle waddle"
console.log( "2" ); // should print 2
console.log( true ); // should print true

For console.log doesn't have to be like this or something different?


#2

I don't see any mistake. Could you explain a little bit more what you meant with what you said?


#3

Just was concerned about what would be printed out.