HELP Manipulating Complex Objects

HELP Manipulating Complex Objects
0.0 0

#1

Tell us what’s happening:
I followed the example code and fulfilled all the requirements but I cannot seem to pass this challenge.
Can someone explain to me where I am going wrong?

Your code so far

var myMusic = [
  {
    "artist": "Billy Joel",
    "title": "Piano Man",
    "release_year": 1973,
    "formats": [ 
      "CS", 
      "8T", 
      "LP" ],
    "gold": true
  }
  // Add record here
];
var myMusic = [  
  {
    "artist": "linkin park",
    "title": "Hybrid theory",
    "release_year": 2000,
    "formats": [
      "cd",
      "ep",
      "lp"],
    "gold": true
  }
  ];

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:


#2

According to the instructions, you are supposed to add a new album to the existing myMusic array. Instead, you attempted to re-declare myMusic with a different album. Both albums (objects) need to be in myMusic.

If I had the following array:

var myArray = [1, 2, 3, 4, 5];

and you told me to add another number to myArray, I would simply add the number 6 to end of it by adding a comma and putting the number 6 inside the existing array.