Testing Objects for Properties Challenge Difficulties

Testing Objects for Properties Challenge Difficulties
0

#21

That was like mine, but you avoided all mistakes!


#22

I did the same mistake :smile_cat:…thank’s for the answer


#23

Wow, the-thief you just saved the day much thanks, I didn’t know that. It didn’t even have a hint about that. I thought it was the same as it didn’t point to that in previous exercises.


#24

A very simple solution:

function checkObj(checkProp) {
  return myObj.hasOwnProperty(checkProp) ? myObj[checkProp] : "Not Found";
}