Constructors in Review let's me proceed without the correct answer


#1



The submit code option on this exercise allows me to proceed with a few wrong answers

https://www.codecademy.com/courses/spencer-sandbox/3/6?curriculum_id=506324b3a7dffd00020bf661


I have since found the correct answer, however, I was allowed to proceed with the both of the below method calls, which did not actually print the correct output to the console.

Thank you,


console.log(rabbit1.describeMyself);
console.log(rabbit2.describeMyself);
console.log(rabbit3.describeMyself);

AND

rabbit1.describeMyself;
rabbit2.describeMyself;
rabbit3.describeMyself;


#2

I have the same issue. My code:

function Rabbit(adjective) {
this.adjective = adjective;
this.describeMyself = function() {
console.log("I am a " + this.adjective + " rabbit");
};
}

var rabbit1 = new Rabbit("fluffy");
var rabbit2 = new Rabbit("happy");
var rabbit3 = new Rabbit("sleepy");

This passes, but doesn't print to the console.

EDIT: looking over another thread, I see that I didn't call the functions, and therefore didn't get any console output, so I was able to fix it... but why did it pass me when I didn't complete the instructions?


#3

My code is

// now we can easily make all of our rabbits
var rabbit1 = new Rabbit("fluffy");
var rabbit2 = new Rabbit("happy");
var rabbit3 = new Rabbit("sleepy");

console.log (rabbit1.describeMyself());
console.log (rabbit2.describeMyself());
console.log (rabbit3.describeMyself());

I get the result correctly but with "undefined" response as well:

I am a fluffy rabbit
undefined
I am a happy rabbit
undefined
I am a sleepy rabbit
undefined