Stuck on Testing Objects for Properties

Okay I was confident at first about this question but now I don’t know what I did wrong. Not sure if I’m even meant to add a if statement.

// Setup
var myObj = {
  gift: "pony",
  pet: "kitten",
  bed: "sleigh"

function checkObj(checkProp) {
  // Your Code Here
  if (myObj.hasOwnProperty(checkProp)) {
    return checkProp;
  } else {
    return "Not Found";

// Test your code by modifying these values

Link to the challenge:

instead of returning the name of the property, you should return the property’s value
(so if the property was ‘gift’ for eg. your output would be ‘pony’)

return checkProp;

You are returning the same value that was passed in. Are you meant to be returning the object’s property?

Okay this is what I done but I am getting no response back from the program

return myObj.checkProp;

wait never mind I changed it to a bracket notation and it worked