Tell us what’s happening:
Describe your issue in detail here.
I’m not sure how to interpret “If the property is found, return that property’s value”
…later it says " checkObj({gift: "pony", pet: "kitten", bed: "sleigh"}, "gift")
should return the string pony
" … 1. The tutorial up to this point never stated how to convert numbers variables into string representations (casting)…2. In real life outside the tutorial environment, does returning a string print it like console.log()?
**Your code so far**
function checkObj(obj, checkProp) {
// Only change code below this line
if (obj.hasOwnProperty("checkProp")){
return obj.checkProp;
}
return "Not Found";
// Only change code above this line
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0
Challenge: Testing Objects for Properties
Link to the challenge: