Is this website out of date?

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(""));
function checkObj(obj, checkProp) {
  // Only change code below this line
  return "Change Me!";
  // Only change code above this line
}

You ignored the instructions when copy-pasting someone else’s solution. Ignoring the instructions tends to lead to failing code.

1 Like

Welcome to the community!

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) :slight_smile:

Happy coding!

4 Likes

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 :sweat_smile: :sweat_smile: :sweat_smile: :sweat_smile:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.