I cant get this data structure right

im stuck and i cant think what ive did wrong
can someone give a few hints

Your code so far

var myMusic = [
    "artist": "Billy Joel",
    "title": "Piano Man",
    "release_year": 1973,
    "formats": [ 
      "LP" ],
    "gold": true,

    "artist": "linkin park",
    "title": "whatever",
    "release_year": 1950,
    "formats": [

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36.

Link to the challenge:

Did you look at what it says when you hover over the red circles with x’s in them?

yes i did but, if i move things around the errors change positions ive tried fixing the lines with no sucess

those are the errors but i have no idea how to fix it like on the first error where the hell i should put a semi colon

Look at all your opening and closing braces and brackets. Do they match up correctly? Are they in the right place?

Tried to change still struggling

Where does myMusic end? Where is the closing brace for the myMusic array?

Below is an array where the first element is a string, the second element is a number, the third element is an object with one property/value pair, and the fourth element is another array of numbers.

var myArray = [ 'a String', 100, {objProp: 'propValue'}, [5, 10, 15] ];

Your myMusic should be an array of objects. The starting code gives you the first element which is an object representing an album with various album properties. All you have to do is add a second element which will be an object similar to the first object.

NOTE: Remember array elements are separated by commas.

Hey, thanks alot its getting clearer now…

But now… should i close the object to add the things the exercise is asking me to do?

Because i tried without it and its saying duplicate key which is kind obvious since theres other artist key

how do i nest those objects is in the same variable

thats what i need to do right?

Remember, you are supposed to be create an array with two separate objects.

var arrayWithTwoObjects = [ { }, { } ];
1 Like

Thanks buddy id kiss you in the mouth if i was near you