JavaScript - Testing Objects for Properties

Continuing the discussion from freeCodeCamp Challenge Guide: Testing Objects for Properties:

This is the only problem I am stuck on in the JavaScript section. Looks like this post was updated recently but the solution no longer works. What am I doing wrong here?

This is the solution provided that does not pass:

function checkObj(obj, checkProp) {
  if (obj.hasOwnProperty(checkProp)) {
    return obj[checkProp];
  } else {
    return "Not Found";

The solution in the first post still works if you just want to copy-paste the answer instead of fixing your own answer.

If you want help fixing your answer, please post what you’ve written here and we can help you out!

Thanks! This always happens. As soon as I post I figure it out. I’d delete the post but I don’t have permission. Thanks! - Will

The solution you added to your edited post does pass the challenge. As such, I added spoiler tags to it.

I’m not sure what you are seeing that indicates that this solution does not pass the challenge.