Why is the test case not passed?

Tell us what’s happening:

Your code so far


function House(numBedrooms) {
this.numBedrooms = numBedrooms;
}

// Only change code below this line
let myhouse = new House(5);
myHouse instanceof House;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36.

Challenge: Verify an Object’s Constructor with instanceof

Link to the challenge:

Hi @hussainwali !

Welcome to the forum!

If you check the console you should get this error message

ReferenceError: myHouse is not defined

1 Like

yeah thanks reloading the browser solved it…

The error was that this variable myhouse is different from myHouse

So maybe when you refreshed the page and retyped it again you fixed the capitalization error.

Glad the issue is solved though.

Happy coding!

1 Like

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