What am i missing here

Tell us what’s happening:
im pretty sure its right what am i missing

Your code so far


var myMusic = [
{
  "artist": "Billy Joel",
  "title": "Piano Man",
  "release_year": 1973,
  "formats": [
    "CD",
    "8T",
    "LP"
  ],
  "gold": true
},
// Add a record here
{
  "artist": "Beau Carnes",
  "title": "Cereal Man",
  "release_year": 2003,
  "formats": [
    "YouTube video",
  ]
}
];

Your browser information:

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

Challenge: Manipulating Complex Objects

Link to the challenge:

The failing test says

formats should be an array of strings with at least two elements

When I add an additional formats to your solution, it passes for me.

1 Like

delete the coma in formats property in the seconds record of myMusic array , exactly after youtube video records delete the comma or add another records , because array doesn’t end with comma

1 Like

The comma does not create a syntax error, and removing the comma will not fix the failing test.

1 Like

add a records after youtube video must be string in formats property because in the test in formats property must be an array with two records at least

1 Like

thanks ill try that and see if it works

it worked thanks guys