your solution is short , nice but you must fix in two places
first
if (value === “tracks”) {// change to value=="" instead of tracks because in the test they ask for If value is empty ( "" ), delete the given prop property from the album//
delete collection[id][prop];
} else if (prop === “tracks”) {
collection[id][prop] = collection[id][prop] || ;// **change this to ** collection[id][prop]=(!(prop in collection[id]))? []:collection[id][prop];//
//means the value of tracks depends on if the tracks is property of recored or not it’s still the same if it’s property if not we add it with empty array //
collection[id][prop].push(value);// push the new value
} else {
collection[id][prop] = value;
}
return collection;
}