Emperor Penguin Object (Needs Debug)


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;
// create an "emperor" object and print the number of legs it has

Emperor.prototype = new Penguin("George");


Yes. I made another one.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.