You were not asked to write the function the way you have written it.
Do not use code you find on the forum. If you absolutely want solution code use the official solution code found at the top of the “Get a hint” page (Get help > Get a hint).
You put this function inside of the original function. That’s strange.
function checkObj(obj, checkProp)
This function has the argument obj. You need to use this argument instead of hard-coding myObj.
I’d reset this challenge to clear out the confusing parts you’ve added. You have the pieces of the right logic in there, but with parts of an old solution mixed in.
Our challenges change from time to time. I recommend against copying old solutions you find because the don’t always match the current version of the challenge.
Also, getting the check marks isn’t really the important part of these challenges. The important part is practicing figuring out how to write code for a new problem. There’s always plenty of time to look at other people’s answers after you solve the problem yourself for the first time.