function checkObj(obj, checkProp) {
// Only change code below this line
var checkObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh",
city: "Seattle",
};
if(checkObj.hasOwnProperty(checkProp)) {
return checkObj[checkProp];
} else {
// Only change code above this line
return "Not Found";
}
// Only change code above this line
}
After running the above, this is the error message that I got: checkObj({pet: "kitten", bed: "sleigh"}, "gift")
should return "Not Found"
.