Tell us what’s happening:
I am trying to add a collection to my data structure, but I get a syntax error…
I need help.
Your code so far
var myMusic = [
{
"artist": "Billy Joel",
"title": "Piano Man",
"release_year": 1973,
"formats": [
"CS",
"8T",
"LP" ],
"gold": true
}
];
[
// Add record here
{
"artist": "Muse",
"title": "Resistance",
"release_year": 2008,
"formats": [
"CS",
"8T",
"LP" ],
"gold": true
}
];
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
.
Link to the challenge:
https://www.freecodecamp.org/challenges/manipulating-complex-objects