Testing object for prop

function checkObj(obj, checkProp) {
  // Only change code below this line
  if(obj.hasOwnProperty(checkProp)){return obj[checkProp]}
else{return "Not Found"} ;
  // Only change code above this line

Do you have a question? If this is about a challenge please post the link to it.

As your code is passing the challenge I have blurred the code.

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