Create two elements

i just cant pass this test can anyone please look into my code and correct me where i am wrong

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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36.

Challenge: Manipulating Complex Objects

Link to the challenge:

I assume it is failing the last test. Your post would be more informative if you could explain what you expected, and what you are getting. I’ll help with this one.

The last test is failing, because the test looks for at least two format strings. How many did you add in your new record?

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.