You’re getting false because you entered a string instead of the variable itself.
change the code to console.log(joinDogFraternity(ourDog))
and you will get true.
The function joinDogFraternity()
is checking whatever variable you enter into it. Remember strings are primitive values, so the string ‘tess’ only contains the information ‘tess.’ The information you’re looking for is stored in the variable ourDog, which also contains the string ‘tess’, and the information about the constructor.