Potential Bug in Verify an Object's Constructor with instanceof

Potential Bug in Verify an Object's Constructor with instanceof
0

#1

Tell us what’s happening:
Is this a bug? I think I’m following syntax from examples exactly…

Your code so far


/* jshint expr: true */

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

// Add your code below this line


let myHouse = House(5);

myHouse instanceof House;

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/object-oriented-programming/verify-an-objects-constructor-with-instanceof


#2

Your missing a key word here in front of House(5) which will make myHouse an instance of House.