Tell us what’s happening:
the code should run as i think i completed the requirements…but still its not working
Your code so far
//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";
}
}
console.log(checkObj("gift"));
Your browser information:
User Agent is: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0.