Hello Karons, the objective of the challenge, was to insert another object in the array.
As you can notice, an array is something like [1,2]; you can see that the numbers are separated by commas. Same happens with objects inside of arrays, [{object},{object}] you can notice that objects are between { }, and there is a comma separating them.
In the first message I saw that you rewrote the myMusic variable; but all you have to do is write another object in the array that was already written. Just dont forget the comma. Please let us know if you solved it!
var ListOfObjects = [{
name:“pencil”,
color:“blue”
}]
There is one object{} with name and color in the array[] called ListOfObjects; what the challenge is asking you to do, is write inside of the List, and make something like this:
I have asked you to post all the code that is written in the editor so that I can help you more
But, you need to create one object, you have created two. Inside the array myMusic there should be two objects, one is already there, the other you need to create yourself. You need to give it properties following the instructions,
So your new object should have 4 properties (you have created two objects with two properties each)
No, in that way the array has three objects, instead including the already existing object the array should have two objects inside so you only need to add one object, not two
var myMusic = [
{
/* this is the first object that already exist */
"artist": "Billy Joel",
"title": "Piano Man",
"release_year": 1973,
"formats": [
"CD",
"8T",
"LP"
],
"gold": true
},
{ /* you need to create a second object here */ }
]