Adding items to album

Hi, i am on the problem where you add another album to the "myMusic = . I have literally cut and pasted the answer (after not being able to find my mistake), and it is STILL giving me errors.

const myMusic = [
{
“artist”: “Billy Joel”,
“title”: “Piano Man”,
“release_year”: 1973,
“formats”: [
“CD”,
“8T”,
“LP”
],
“gold”: true
}
];

{
“artist”: “Molly Cat”,
“title”: “Give Me Pets”,
“release_year”: 2021,
“formats”: [
“CD”,
“8T”,
“LP”
],
“gold”: true
}

The error is telling me “missing semi-colon” after each key in the bottom. All I did was copy and paste. If I change them all to semi-colons, then I get the error

myMusic should have at least two elements // tests completed

help!

Look again. Your 2nd object Molly Cat isnt inside/part of the myMusic array.
You must nest it so that it becomes a part of that array or assign it to a new variable, whichever the instructions ask you to do . Good luck :+1:

1 Like

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