Help needed: Manipulating Complex Objects

Help needed: Manipulating Complex Objects
0.0 0

#1

I’m confused with this.
I thought to manipulate an array I have to use the push-function?
(This is about adding something right? Or?)

A frame to look on the problem would a lot :slight_smile:

Your code so far

var myMusic = [
  {
    "artist": "Billy Joel",
    "title": "Piano Man",
    "release_year": 1973,
    "formats": [ 
      "CS", 
      "8T", 
      "LP" ],
    "gold": true
  }];

 push.myMusic(["artist":,
              "title:",
              "release_year":,
              "formats":[]
              ]);
];

Your browser information:

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

Link to the challenge:


#2

Just to start you out

push.Array isn’t the right way around!


#3

You literally just need to add another album object to the array, manually. You don’t need to use any methods. All is asking is that you understand what an array of objects looks like.