// Setup
var myObj = {
gift: “pony”,
pet: “kitten”,
bed: “sleigh”
};function checkObj(checkProp) {
// Your Code Here
var check =“”
var result=“”
check = myObj.hasOwnProperty(checkProp);
if (check = true){
result = myObj[checkProp];
return result;
}
else if(check =false){
result = “Not Found”;
return result;
}
return result
}
// Test your code by modifying these values
checkObj(“gift”);
why is my code not working?