Tell us what’s happening:
Describe your issue in detail here.
So like many of you, I have spent a long time trying to understand this. I have had to look at the answers to “guess” that [id] which is only defined and mentioned in the function below the setup and no place else, is supposed to equal the numbers in the album records (2548, 2468 and so on). I am also guessing that the ‘id’ parameter is built into Javascript, and yet I cannot find any information online about this.
In all the explanations so far, it is just assumed that everyone understands where [id] comes from, and through guesswork I am somehow supposed to not stumble onto a wrong answer that seems right. Anyone else feel like this?
**Your code so far**
// 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'
}
};
// Only change code below this line
function updateRecords(records, id, prop, value) {
return records;
}
updateRecords(recordCollection, 5439, 'artist', 'ABBA');
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36
Challenge: Basic JavaScript - Record Collection
Link to the challenge: