Not sure of issue in code?

Tell us what’s happening:
Describe your issue in detail here.
Not sure where I’m running into issues with this problem: the only message I’m receiving is: unknown: Unexpected token, expected “,” (15:0)
Your code so far

const myMusic = [
 {
   "artist": "Billy Joel",
   "title": "Piano Man",
   "release_year": 1973,
   "formats": [
     "CD",
     "8T",
     "LP"
   ],
   "gold": true
 }

 
{ 
"artist": "Phoebe Bridgers",
 "title": "Punisher",
 "release_year": 2019,
 "formats": [ "CD","Cassette","LP" ]
}

 

];
   **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36

Challenge: Manipulating Complex Objects

Link to the challenge:

First of all, learn to format your code as you go - it will save you a lot of headaches.

Second, it is saying that you have an array of two elements (objects in this case). It wants a comma to separate the. It sees the } that ends the first object and expects either a comma (for separate the next element) or a ] to finish off the array. There is no situation where } should be the next character in this case.

Wonderful, thank you!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.