// Setup
var myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh"
};
function checkObj(checkProp) {
// Your Code Here
if (myObj.hasOwnProperty(checkProp)){
return myObj.checkProp;
}else{
return "Not Found";
}
}
// Test your code by modifying these values
checkObj("gift");
guys why my code is not working. I know it is a different approach but it all seems to be working.
thanks.