Hi! Hopefully I can help some too, I’ve been really stuck on this as well. So, do you see how in the function updateRecords, there’s a parameter that says ‘records’? I didn’t realize this, but when you call on a function to be performed, you can set up new variables and constants there. So, when you’re calling on ‘records’, it can’t really call on much of anything because… ‘records’ got defined in that specific function as a parameter, but it doesn’t really mean much else to JavaScript outside of that. Does that make some sense?
So, you should actually be calling on the console to log recordCollection because it’s inside that constant you modified data with your new function. Records can’t exist on it’s own, but it exists as a parameter/variable housed inside updateRecords, and if you compare the updateRecords example with the function updateRecords, you can see it’s one to one! recordCollection is to ‘records’. I think of it like a ratio or something standing in to represent something else.
I just understood this this morning and I wanted to share some guidance. Hope that helped! Good luck!
omg that makes perfect sense now! thanks so much for the explanation, I had been staring at the screen so long that not even my name was making sense by that point