When you use dot notation with the .prop above, you are trying to reference an actual property named “prop”. There are no objects with a property named “prop”, so you this if statement will never evaluate to true.

The other overriding issue with your code is that your for loop will only make a single iteration before you return something. Once a return statement is executed, the function immediately exits and does not come back to finish a loop.