Whats wrong here?

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

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

// Test your code by modifying these values
checkObj("gift");

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

markdown_Forums

Please add more information to your post. What are you trying to achieve? What is going wrong? What do you know? What are you confused about? What steps have you taken to try to solve this? What else have you tried?