collection[id]["tracks"] is or should be an array with strings inside, it will always not be equal to the string "tracks", as such you are always making collection[id]["tracks"] have value of [value] so if the array already had strings inside you are deleting them - if there are already values you should add new ones to the array instead
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original posterâs question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
If you want to compare your solution to others, use the Get a hint button on the challenge and there are alternative solutions you can compare yours to. Also, you can probably search older posts using the forum search feature or google the challenge name and find more there.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.
This challenge was really hard for me. But I change my flow of thinking after I saw the hint for this problem.
Now I understand, that I must have a nested IF statement for âpropsâ equal âtracksâ, then my code will be working good.
Now my code for âCollection recordâ is like this: