Hey, I am new to coding so, I am not sure if I am following the right thought for the Problem.
As I have understood it, that I neet to update something, but I am not sure what and I dont want to look at the finished products cause I want it to build myself.
As seen in the lession/code the 1245 and 5439 are incomplete in comparison to the first ID’s.
Thank you very much in advance!
Dein Code bisher
// Setup
const recordCollection = {
2548: {
albumTitle: 'Slippery When Wet',
artist: 'Bon Jovi',
tracks: ['Let It Rock', 'You Give Love a Bad Name']
},
2468: {
albumTitle: '1999',
artist: 'Prince',
tracks: ['1999', 'Little Red Corvette']
},
1245: {
artist: 'Robert Palmer',
tracks: []
},
5439: {
albumTitle: 'ABBA Gold'
}
};
// Ändere nur den Code unterhalb dieser Zeile
function updateRecords(records, id, prop, value) {
return records;
updateRecords(recordCollection, 5439, 'artist', 'ABBA');
}
Deine Browser-Informationen:
User Agent ist: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Challenge: Die Grundlangen von JavaScript - Schallplattensammlung
**Link zur Herausforderung: **