Why console is false?

I really don’t know where I wrong TT
or did I console the wrong way?

Dog is a constructor function, it is used to create objects. But it’s the objects that have constructors. So you’d need to pass a Dog object into the function in order for it to return true.

let doggy = new Dog(“randomname”)
console.log(joinDogFraternity(doggy))
console,
true

you mean like this?

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