Hello, I have checked other posts regarding this challenge and none seemed to have this issue. That’s why I am posting it.
// Setup
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("bed");```
This is what appears, so I think I am not targeting the actual value but the property. My issue must be with the return myObj[checkProp];
t// running tests
checkObj(“gift”) should return “pony”.
checkObj(“pet”) should return “kitten”.
// tests completed