Help im stuck code not running

Tell us what’s happening:

  **Your code so far**

function checkObj(obj, checkProp) {
// Only change code below this line
var myObj = {
  gift: "pony",
  pet: "kitten",
  bed: "sleigh",
};
if(myObj.hasOwnProperty (checkProp)){
  return myObj[checkProp];
}
else{return "NotFound";}

}

  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36.

Challenge: Testing Objects for Properties

Link to the challenge:

HI @kalololemba !

There are a few issues here.
So I would suggest resetting the lesson.

First off, you are not supposed to create your own object.

So you will need to delete this part.

Secondly, you are supposed to check if obj has a property of checkprop.
Right now you are checking if myObj has a property of checkprop.

You need to modify this part because it is wrong.

Lastly, this needs to be two words

Hope that helps!

Hello @jwilkins.oboe
Thank you very much. Let me review my work and make some changes i’ll let you know how it goes.

@jwilkins.oboe still cant seem to solve this challenge i tried everything you told me

Can I see your updated code?