Pleased help. I don't understand what I'm supposed to do when testing objects for properties. Any idea how to go about it?

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
const checkObj ={
  gift:"pony",
  pet:"kitten",
  bed:"sleigh",
  city:"seattle",
};
checkObj.hasOwnProperty("home");
checkObj.hasOwnProperty("gift");

 // Only change code above this line
}
   **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 11; SM-A107F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36

Challenge: Testing Objects for Properties

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


Where did this come from? Why aren’t you using obj?

I see no return statement. Also, why are you using "home" and "gift" instead of using checkProp?

Please I have the same problem but the reply here is not clear enough to help me out. Please can some one help us out ? Thanks

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.