Manipulating Complex Objects, my code is not running please help!

Tell us what’s happening:

Your code so far


var myMusic = [
  {
    "artist": "Billy Joel",
    "title": "Piano Man",
    "release_year": 1973,
    "formats": [ 
      "CD",
      "8T",
      "LP"
    ],
    "gold": true
  }
  // Add record here
  {
    "artist": "Ariana Grande",
    "title": "God is a woman",
    "release_year": 2017,
    "formats": [
      "Mp3",
      "CD",
      "LP"
    ],
  }
];

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/manipulating-complex-objects

So after the closing bracket of the first object, there should be a comma. As there is the line that says

 // Add record here

I might change your very first line (of your new object) to:

,  {
    "artist", "Ariana Grande",
    ...
  }
]

As it is an array of objects, each object should be separated by a comma.

1 Like