You have the arguments of object, id, prop, value, but if you look in your function you will see you never use the object argument so when you provide your function the object collection it simply will not use it as you never used the argument of object. Think about why you are using the arguments, and what each argument actually represents.
Also think about what you do not understand because your current question " Stuck at this challenge,not understand how to solve it" Actually makes it harder for people trying to help you because it gives no information. A good question goes a long way, and it’ll make people more likely to help.
In other words, replace all occurrence of “collection” with “object”.
The problem in your code is, you are using the variable “collection”. Ask yourself, where is “collection” even coming from? The answer is nowhere. So why are you using it?
But in your function, “updateRecords”, you are accepting four parameters, namely, “object”, “id”, “prop”, and “value”. In this case, you want to use the “object” variable instead of “collection” (which we already concluded does not exist).