Manipulating Complex Objects challenge help

Manipulating Complex Objects challenge help
0.0 0

#1

Tell us what’s happening:
I want to create another object to represent the second album and i did, and it give me error i don’t why ?

Your code so far


  
   var myMusic = 
     
   {  
    [ "artist": "Billy Joel",
    "title": "Piano Man",
    "release_year": 1973,
    "formats": [ 
      "CS", 
      "8T", 
      "LP" ],
    "gold": true],
  
  // Add record here
    
     [ "artist": "Celin Dion",
    "title": "A new day",
    "release_year": 2014,
    "formats": [
      "CD",
      "Casssette",
      "LP"
    ]
     ]
   }
   
    
   
    
     
 

  
  
     
        

Your browser information:

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

Link to the challenge:


#2

You missed filling out the “Tell us what’s happening” section, so we don’t know what you’re asking


#3

You somehow inverted what you’re meant to be doing

Objects are declared using braces - { and }
Arrays are declared using square brackets - [ and ]

So what you’ve tried to do here is make an object with array elements (but using invalid syntax so it wouldn’t work)

What you want to be doing is making an array of objects, so var music = [ { ...etc }, { ...etc} ]