Manipulating complex objects...,

Tell us what’s happening:

What did I do wrong?

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": "hj",
 "title": "hjs",
"release_year": 1997,
"formats": [
 "hu",
 "huj"],
 }
];

Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Safari/604.1.

Challenge: Manipulating Complex Objects

Link to the challenge:

In your console you should see the following error:

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

As you may remember each entry inside an array needs to be separated by commas:

[1, 2, 3, 4]

So does your objects inside myMusic array. JS is complaining because it cannot find the separation comma between the two objects :slight_smile:

Hope this helps :+1: