ManipulatingObjects

ManipulatingObjects
0.0 0

#1

Tell us what’s happening:

I’m unsure on how to lay out this code in order to pass the challenge. Could I please get some help on what i might be doing wrong?

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": "Billy J",
  "title": "Piano M",
  "release_year": 19,
      "formats": [ 
      "CS", 
      "8T", 
      "LP" ],
    "gold": true
  }
    
}
  
 ];

Your browser information:

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

Link to the challenge:


#2

You want an array of two objects. Remember that array elements are separated by commas. You are missing a comma separating the two objects.

EDIT: You also have an extra } in your code near the bottom.


#3

Perfect, that worked. Thank you so much for your help.