Yep, at the moment it is myObj.hasOwnProperty when it should be myObj.hasOwnProperty(checkProp) . Essentially you need to pass the property you would like to check as the parameter. More info on the mozilla website
@cmwebby is correct. In the function you are using the parameter checkProp to pass in the argument for the function. You want to use the hasOwnProperty method on the argument “dog” in this case.
Also, if you just use
return hasOwnProperty(checkProp);
you will get a true/false value even without the if statement. As it stands now, you are returning checkProp, or “dog” from this function. I don’t know if that was your intent.