Manipulating Complex Objects Help

Manipulating Complex Objects Help
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
  
  }
  ];
   
var myMusic = [
  {
    "artist": "Dent May",
    "title": "Across the Multiverse",
    "release_year": 2017,
    "formats":[
    "Cd",
    "Cassette",
    "LP"
     ],
    "gold":true
     }
     ];

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36.

Link to the challenge:


#2

You overwrite the value of myMusic. You have to add a new object to the array, either by directly placing it inside myMusic or by using .push().