I cant get this data structure right

I cant get this data structure right
0.0 0

#1

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": [ 
      "CS", 
      "8T",   
      "LP" ],
    "gold": true,
  },
];

  { 
    "artist": "linkin park",
    "title": "whatever",
    "release_year": 1950,
    "formats": [
      "CD",
      "Online"
      ] 
  }
};
      
    

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:


#2

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


#3

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


#4

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


#5

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


#6

Tried to change still struggling


#7

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


#8

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.


#9

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?


#10

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

var arrayWithTwoObjects = [ { }, { } ];

#11

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