Tell us what’s happening:
I’ve tried many different versions of this code for days. I’ve looked at various sites to try to harden my knowledge on this subject. I’m still confused. I am back with a bit of determination to get help. I have not been able to get this to work, and I don’t have anyone immediately here to help. I can’t give up, but I’ve been stumped here.
Your code so far
// Setup
var myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh"
};
function checkObj(checkProp) {
// Your Code Here
myObj.hasOwnProperty(checkProp);
return checkObj(checkProp);
//return "Not Found";
}
// Test your code by modifying these values
checkObj("gift");
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/testing-objects-for-properties