Testing objects for properties (JS)

Hi all,

Was just looking to get help to make my code work for this challenge, please and thank you!

My code:

function checkObj(obj, checkProp) {
  // Only change code below this line

  var myObj = {
    gift: "pony",
    pet: "kitten",
    bed: "sleigh",
    city: "Seattle"

  if (myObj.hasOwnProperty(checkProp)) {
    return myObj[checkProp];
    } else {
    return "Not Found";

  // Only change code above this line

The test that isn’t passing (the error) is:

you are always testing the same object
but look at the function, each test has a different object as part of the function
how could you make your function test the passed in object?

Ahh, got it - thanks so much!