Emperor has legs but registers error



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?



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



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.