My code is not working4 233

Its not working
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": "Sid Alapati";
  "title": "Meta And Dead Bush Development";
  "release_year": 1981;
  "formats": [
    "Floppy Drive",
    "Hard Drive",
    "Thunderbolt"
  ],
  "gold": true
}
];
  **Your browser information:**

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

Challenge: Manipulating Complex Objects

Link to the challenge:

The console says

SyntaxError: unknown: Unexpected token, expected "," (14:0)

  12 | }
  13 | // Add a record here
> 14 | {
     | ^
  15 |   "artist": "Sid Alapati";
  16 |   "title": "Meta And Dead Bush Development";
  17 |   "release_year": 1981;

This is because you have omitted a comma between entries in the array.

There are a few punctuation problems in here. Between elements in an array (as myMusic is an array), you need commas. Within an object, you also need commas to separate the object’s properties. You’ve got semicolons.

1 Like