I can see that I am not the only one who is having questions about Basic JavaScript: Record Collection. I worked out my solution in the Chrome Dev console and got the desired outcome based on the rules for the lesson on FCC. However, my solution is not getting a pass in FCC:
Here is my code:
It is producing an outcome that meets all the rules unless I am missing something big:
{ 1245:
{ artist: 'Robert Palmer',
tracks: [ 'Addicted to Love' ],
album: 'Riptide' },
2468:
{ album: '1999',
artist: 'Prince',
tracks: [ '1999', 'Little Red Corvette', 'Free' ] },
2548:
{ album: 'Slippery When Wet',
artist: 'Bon Jovi',
tracks: [ 'Let It Rock', 'You Give Love a Bad Name' ] },
5439:
{ album: 'ABBA Gold',
artist: 'ABBA',
tracks: 'Take a Chance on Me' } }
I also found and ran the answer that FCC passes as the correct answer. I know because I pasted it in and it passes. However, it produced the following code with Bon Jovi the artist missing. I am really not getting it.
{ 1245:
{ artist: 'Robert Palmer',
tracks: [ 'Addicted to Love' ],
album: 'Riptide' },
2468:
{ album: '1999',
artist: 'Prince',
tracks: [ '1999', 'Little Red Corvette', 'Free' ] },
2548:
{ album: 'Slippery When Wet',
tracks: [ 'Let It Rock', 'You Give Love a Bad Name' ] },
5439:
{ album: 'ABBA Gold',
artist: 'ABBA',
tracks: [ 'Take a Chance on Me' ] } }
Anyone who would like to enlighten, please help! I would really appreciate it!
