Emperor has legs but registers error


#1



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


Oops, try again. Make sure to log the number of legs emperor has!


Replace this line with your code. 

// define a Penguin class
function Penguin(name, numLegs) {
this.name = name;
this.numLegs = 2;
}

// create your Emperor class here and make it inherit from Penguin

Emperor.prototype = new Penguin();

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

// create an "emperor" object and print the number of legs it has
var emperor = new Emperor();

console.log = (emperor.numLegs);

I've gotten this far without a furtherance of my efforts. What is wrong, why doesn't the machine recognize my log of emperor.numLegs?


#2

@hollygef

No = sign here! Here's a reminder of console.log function syntax:

console.log("something");

#3

Sometimes when you stare at something so long, the most obvious error is erased from your mind. Thanks for the quick reply.

...humbled and kicking self in head.