Ok, we’ve got a few issues going on here, so let’s tackle them one by one.
First, you are right, contacts[i].propcannot give you the property value stored in the variable prop for contacts[i]. Dot notation doesn’t work like that. The code contacts[i].prop checks contacts[i] for the property prop, which does not exist. You need to use bracket notation instead of dot notation to access this property.
Also, you changed code outside of the lines
// Only change code below this line
and
// Only change code above this line
These lines are there to guide you towards the correct solution and prevent you from breaking the test suite. In this case, you are making a global variable called foundName. The curriculum will explain in better detail, but suffice it to say, you do not want to use global variables unless absolutely necessary. The challenge asks you to return something, not to update some global variable that should not exist!
Also, I believe you have a stray prop after your closing brace for your if statement.
I hope this helps, but please let me know if I can be clearer.