Help-Manipulating Complex Objects

Help-Manipulating Complex Objects
0

#1

Tell us what’s happening:

Your code so far


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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/manipulating-complex-objects


#2

Elements of an array are separated by a , you missed one :slight_smile: