I think you don’t understand the structure of the records object.
Why did you redefine id as a function with an argument named prop?
This isn’t how you use hasOwnProperty. You have called it on the functionid which you have created, which is not valid. Even without this function problem, you need to call hasOwnProperty on an object but id is not an object.
Why are you trying to += something to id? That is not how you change, modify, or define a property on an object.
If id was an object, you couldn’t access the property prop by dot notation, because prop is a variable rather than the exact property name.
i thought id has value 1245 or 5439 or… and if this function is inside another function so this mean that properties of second the same
like id is folder, and when i’m writing the way i can modify it when got accsess
i gess need more to reed about this before doing this lesson