Tried so hard but didn't get the correct output

Tried so hard but didn't get the correct output
0

#1

Tell us what’s happening:

Your code so far


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

function checkObj(checkProp) {
  if(myObj.hasOwnProperty(checkProp))
  {
  return myObj[checkProp];
}
  else 
  {
    return "Not found";
  }
}
checkObj("house")


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/testing-objects-for-properties/


#2

you did really great but you just need to capitalize the word ‘found’ as the test expects “Not Found”


#3

Thank you got it:grinning: