Basic JavaScript - Testing Objects for Properties

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

function checkObj(obj, checkProp) {
  // Only change code below this line
  return obj.hasOwnProperty(checkProp);
  // Only change code above this line
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Basic JavaScript - Testing Objects for Properties

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

You are getting close; you have to return two values. You are returning either true or false. You have to return the property if it is found, and if not, then “Not Found.”