I’m getting hung up on a concept of the Record Collection challenge and was looking for more clarity. It’s not about the solution but rather how this particular code works. With the Record Collection we have the initial object variable
collection and then we have the function
updateRecords(id, prop, value).
The part I don’t understand is how does the code know what id, prop, and value are? I understand we can have an array of arrays and we can access the nested values of one of those arrays, but when I look at the way it’s set up it just doesn’t make much sense. It seems more like it would be set up to pull the different objects/id’s for id, prop, and value variables.
Hoping someone can help me clear up my understanding of this, please let me know if I can clarify anything that isn’t too clear here.