21/30 Loophole?


// 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

Results in a "win" although I did not do the task. Maybe don't base correct/false on the results but what is inside console.log :P?


It would appear to the be case, as you suspect that the SCT is checking the screen, not the code, and finding the correct output passes the exercise.

The main thing is you do know how to generate the correct output, right?

console.log( object.property );


I mostly just wanted to showoff that I found a loophole :sweat_smile:

might as well be honest y'know


It is good to bring these things up so the engineers can read about it in their travels. The forum is like a grapevine and if an issue can be easily addressed, it may get done, and done quickly. So, do keep an eye out. It helps everyone in the long run. Thank you.


Thank you! This site is amazing!

Is there a place you can donate to the founders/company?


Cannot say. You would need to contact the company by email or on Twitter to get an answer to this question.


hii actually I'm struck here and I have used as you suggest in your comment to use object.property but the output comes undefined... Please help me by providing the solution..

Thanks in advance.