Basic JavaScript - Manipulating Complex Objects

Tell us what’s happening:
It says unexpected token on line 4 , everything on that line which is
“title”: “Piano Man”
was there previously so I’m not sure what’s wrong with my answer

Your code so far

const myMusic = [
    "artist": "Billy Joel"
    "title": "Piano Man"
    "release_year": 1973,
    "formats": [
    "gold": true
  "artist": "Smash Mouth"
  "title": "All-Star"
  "release_year": 2003
  "formats": [

Your browser information:

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

Challenge: Basic JavaScript - Manipulating Complex Objects

Link to the challenge:

Screen Shot 2023-08-14 at 9.08.06 PM

You forgot some commas. That’s why it’s saying expected ",".

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