Specific questions tend to get better answers in quality and quantity. Can you ask a specific questions and explain exactly what you don’t understand? It’s OK if you need ask more afterwards, but the “explain everything to me” approach is not going to work well, I think.
So, please quote a sentence from the problem description and explain what about it you are not understanding. We can start there.
I think that you are referring to { and } as folds? They are often referred to as curly braces or brackets in code. Sometimes you will see [square braces] as well.
This exercise asks us to create a function called updateRecords()
This function takes in the arguments of (records,id,prop,value)
You can assume it will always receive the objectrecordCollection as records.
It should check if the argument of prop is tracks.
If it is, then it should check if the argument of value has a tracks property.
If it does not, then it should create one as an array with value inside.
If the argumentprop is tracks and the argumentvalue is not an empty string, then add value to the end of the existing album’s array.
If the argumentvalue is an empty string, delete the given prop property from the album.
It should always return the entire record collection after these changes are made.