Manipulating Complex Objects- Data Structures

Manipulating Complex Objects- Data Structures
0

#1

Tell us what’s happening:

I am trying to add a collection to my data structure, but I get a syntax error…

I need 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
  {
    "artist": "Muse",
    "title": "Resistance",
    "release_year": 2008,
    "formats": [
      "CS",
      "8T",
      "LP" ],
    "gold": true
  }   
];


Your browser information:

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

Link to the challenge:


#2

var myMusic is an array containing objects, so you need to add one more object inside the array.

var myMusic = [
  {
    "blah": "blah-blah"
  },
  {
    "bleh": "bleh-bleh"
  }
];