Object Oriented Programming - Verify an Object's Constructor with instanceof

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**


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

// Only change code below this line
let myHouse = new House(4);
myHouse instanceOf House;

it is keeping on showing that I am missing semicolon at the end of myHouse.

  **Your browser information:**

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

Challenge: Object Oriented Programming - Verify an Object’s Constructor with instanceof

Link to the challenge:

hey there! what issue are you having with this challlenge?

It is instanceof (all lower case) not instanceOf

1 Like

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