Testing Objects for Properties 12

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
  if (obj.hasOwnProperty(checkProp)) {
return obj[chekProp];
  } else {
    return "Not Found";
  }
 // Only change code above this line
}
   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

Challenge: Testing Objects for Properties

Link to the challenge:

I would “chek” closely for typos.

1 Like

did you solve this? because I’m stuck and if you could help m out i’d appreciate it.