Please help, this is my code and the answer comes back as it should be but I guess i’m doing something wrong because I still get an X on "it should return “Not Found!”.
var myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh"
};
function checkObj(checkProp) {
// Your Code Here
if (myObj.hasOwnProperty(checkProp) === true){
return myObj[checkProp];
}
else
return "Not Found!";
}
// Test your code by modifying these values
checkObj("house");