Adding to myMusic

Adding to myMusic
0.0 0

#1

Tell us what’s happening:
Cant figure this one out. Its coming back as not having any props in myMusic[1]. Not really sure at all why… any help would be greatly appreciated. Don’t think I’m even on the right track. Thanks.

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[1] = [
   {
    "artist": "lilWayne",
    "title":"Carter3",
    "release_year":2008,
    "formats":[
    "C.D.",
    "Tape",
    "digital"
    ]
 }];
  
    
  


Your browser information:

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

Link to the challenge:


#2

You are close, but think about what you want to add as the second element of myMusic. The challenge starts with myMusic being an array with one element (an object representing an album).

Your code is adding a second element, but that element is an array with one element (an object representing another object).


#3

Really don’t think I was going to figure that out tonight without the tip. Thanks much.