Hi all,
Was just looking to get help to make my code work for this challenge, please and thank you!
My code:
function checkObj(obj, checkProp) {
// Only change code below this line
var myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh",
city: "Seattle"
};
if (myObj.hasOwnProperty(checkProp)) {
return myObj[checkProp];
} else {
return "Not Found";
}
// Only change code above this line
}
The test that isn’t passing (the error) is: