.push method to solve the Manipulating Complex Objects question?

Hi,

Is there a way to solve this problem using push rather than modifying the myMusic object directly?

Your code so far


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

myMusic.push(["artist", "Daft Punk", "title", "Homework", "release_year", "format"])

Your browser information:

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

Challenge: Manipulating Complex Objects

Link to the challenge:

Yes, technically, but it’s not going to pass the challenge, which is much simpler than that: what you’re asked to do is just add another object to the array, it’s just to get you used to working with data structures. It isn’t asking you to use any functions, that comes in the next few challenges