Tell us what’s happening:
I followed the solutions page and several other post’s code to troubleshoot my own and I am not sure why it is not taking? Any suggestions? Thanks in advanced!
**Your code so far**
function checkObj(obj, checkProp) {
// Only change code below this line
myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh",
city: "Seattle",
};
if (myObj.hasOwnProperty(checkProp))
{return myObj[checkProp];}
else {return "Not Found";}
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46
.
Challenge: Testing Objects for Properties
Link to the challenge: