Manipulating complex objects -help me

Tell us what’s happening:
I don.t know what’s wrong with my code. It’s not running

  **Your code so far**

var myMusic = [
{
  "artist": "Billy Joel",
  "title": "Piano Man",
  "release_year": 1973,
  "formats": [
    "CD",
    "8T",
    "LP"
  ],
  "gold": true
} 
// Add a record here
 {
  "artist": "Beau Carnes",
  "title": "Cereal Man",
  "release_year": 2003,
  "formats": [
    "YouTube video"
  ]
}
];


  **Your browser information:**

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

Challenge: Manipulating Complex Objects

Link to the challenge:

You need a comma after the first record.

     ...
     "gold": true
}, //<-- this comma
//Add a record here
{
     ...

Hope this helps

1 Like