Manipulating Complex Objectss

Manipulating Complex Objectss
0.0 0

#1

Tell us what’s happening:
I CAN NOT SOLVE THIS Problem , can u help me plzz ?

Your code so far

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

Your browser information:

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

Link to the challenge:


#2

myMusic is an array[]

the first element: myMusic[0] =
{
“artist”: “Billy Joel”,
“title”: “Piano Man”,
“release_year”: 1973,
“formats”: [
“CS”,
“8T”,
“LP” ],
“gold”: true
}

so your job is to push a new similar element to your array


#3

thank you , but ur code does not work well
can u give me a complete code plzz ?


#4

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

  myMusic.push(
  {
    "artist": "WHATEVER",
    "title": "LOSER TUNES",
    "release_year" : 2005,
    "formats" : ["CS", "8T", "MP3"]
  }
  
  );

#5

thank u so much >>>>