Complex Objects

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": [ 
      "CS", 
      "8T", 
      "LP" ],
    "gold": true
  }
  // Add record here
  myMusic.push(
  "artiste":"mahaleo",
  )
  
];

Your browser information:

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

Link to the challenge:


#2

If you are trying to push a new album then you should push another object into the array with the same style.
Such as:
myMusic.push({artist: “Metallica”, title: “Ride the Lightning”, release_year: 1981, formats: [“CS”, “8T”, “LP” ], gold: true});