Complex object in javascript

Complex object in javascript
0.0 0

#1

Tell us what’s happening:

Please help ?

Your code so far

var myMusic = [
  {
    "artist": "Billy Joel",
    "title": "Piano Man",
    "release_year": 1973,
    "formats": [ 
      "CS", 
      "8T", 
      "LP" ],
    "gold": true
  }
  // Add record here
];

myMusic[
    "artist": "Mark Darius",
    "title": "the Codes",
    "realease_year": 2018,
    "formats": [
      "CS", 
      "8T", 
      "LP" 
    ]
];

Your browser information:

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

Link to the challenge:


#2

“Please help” doesn’t describe what your problem is. What are you struggling with?


#3

What you’re being asked to add to is an array of objects:

var arrayOfObjects = [
  { foo: 1, bar: 2 },
  { foo: 3, bar: 4 }
]

Where it says // add record here, add the record there, what you currently have isn’t valid JS, and it’s in the wrong place.