Haciendo pruebas de verificacion de propiedad de objeto

Buenas noches foro estoy tratando de hacer el ejercicio para comprobar la propiedad del objeto pero no puedo hacerlo me podrian ayudar por favor. Estare muy agradecido!

function checkObj(obj, checkProp) {

  var result = "";

  var myObj = {
    "gift": "pony", 
    "pet": "kitten", 
    "bed": "sleigh",
    "city": "Seattle"
  };
  result = myObj[obj,checkProp];
  return "Not Found";

}
checkObj.hasOwnProperty("gift");
checkObj.hasOwnProperty("pet");
checkObj.hasOwnProperty("house");
checkObj.hasOwnProperty("city");
checkObj.hasOwnProperty("district");
checkObj.hasOwnProperty("gift");

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).