Javascript Challenge 217 Help

What exactly am I doing wrong here guys??? Thanks for the help

Chase

What I have so far

var myMusic = [
  {
    "artist": "Billy Joel",
    "title": "Piano Man",
    "release_year": 1973,
    "formats": [ 
      "CS", 
      "8T", 
      "LP" ],
    "gold": true
  }
   var myMusic[1] = {
    "artist": "August Burns Red",
    "title": "Constellations",
    "release_year": 2009,
    "formats": [
      "CD",
      "Vinyl",
      "Digital"]
  }
];

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:
https://www.freecodecamp.org/challenges/manipulating-complex-objects

The challenge wants you to add another object inside the array assigned to the myMusic variable.

What they give you in the beginning is an array with one object in it representing an albums info.

So you have and array [] which has an object {} inside of it [{}] which contains the album info.

You want to add another object to that array so there are two objects.

Note
You will need to place a comma after every object in the array, unless it is the last object in the array.

So two objects in an array separated by a comma would look like this [{}, {}].

Of course I’ve left out the info inside the objects just to demonstrate the syntax.

var myVariable = [
{},
{}
];
2 Likes

This helped. Thank you!