Manipulating Complex Objects i'm confused someone please help me

Manipulating Complex Objects i'm confused someone please help me
0

#1

Tell us what’s happening:

Your code so far

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


Your browser information:

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

Link to the challenge:


#2

Can you give us more detail about which part of the instructions you do not understand? Do you not understand how add elements to an array? Do you not understand the requirements of the object/album you are suppose to add?


#3

var myMusic = [
{
“artist”: “Billy Joel”,
“title”: “Piano Man”,
“release_year”: 1973,
“formats”: [
“CS”,
“8T”,
“LP” ],
“gold”: true
}

[“artist”:“Popo”,
“title”: “HOMEWORK”,
“release_year”:1679,
“formats” : [“OP”,“1T”,“IOP”],
“gold”:true// Add record here
];

This is what I have done so far but it seem not right , I got stuck here.
part that i don’t understand is that what do they mean by adding strings to it?


#4

You surround the above with [ ] which is used to represent an array, but you have written it as if it is an object (which is correct). You need to surround your object with the correct characters. Also, remember that myMusic is an array. How do you separate elements of an array?

You added strings for your title and artist properties, so you are fine there. Just fix the part I mentioned above and you will pass the challenge.