Good evening.
I am struggling with this challenge and no matter what I attempt, it keeps returning “Not Found”.
Here is my code below:
// Setup
var myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh"
};
function checkObj(checkProp) {
// Your Code Here
if(myObj.hasOwnProperty() === true) {
return checkProp;
}
else return "Not Found";
}
// Test your code by modifying these values
checkObj("pet");
Any help and feedback is greatly appreciated.
Thank you.