No matter what solution I use for this question im told its incorrect. Even when I use the solution supplied BY THIS WEBSITE. What is going on with this question that im not understanding? Is this website even being maintained or am I wasting my time
here is my code:
var myObj = {
gift: "pony",
pet: "kitten",
bed: "sleigh"
};
function checkObj(checkProp) {
if (myObj.hasOwnProperty(checkProp)) {
return myObj[checkProp];
} else {
return "Not Found"
}
}
console.log(checkObj(""));
It’s being maintained constantly by a ton of volunteers who find time outside their day jobs and with their family to contribute to the ongoing development of this amazing FREE resource whether it’s by contributing directly to the codebase, posting on this forums, writing articles or recording FREE video courses and publishing them on YouTube.
Sorry your first experience was a frustrating one but once you get the hang of the format I’m sure you’ll find your time on freeCodeCamp will be well spent (i.e. not wasted)
The error is in how you write the function (you are missing a parameter!).
Also, from my own humble experience 99 out of 100 times you think freeCodeCamp is wrong, it’s actually the other way around