Manipulating Complex Objects getting stuck with what they want me to do

Tell us what’s happening:
I don’t understand what they mean with: and a formats array of strings.
I used the http://www.json.org and everything seems to be in corect order?

Your code so far


var myMusic = [
{
  "artist": "Billy Joel",
  "title": "Piano Man",
  "release_year": 1973,
  "formats": [
    "CD",
    "8T",
    "LP"
  ],
  "gold": true
}
// Add record here
];
array '[myMusic]',
"artist": "title",
"release_year": "1000"

}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.2 Safari/605.1.15.

Challenge: Manipulating Complex Objects

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/manipulating-complex-objects

you need to add the object inside the array, before the closing ]; of the array

you need to add an object to the array
an object has syntax like

{
  'key1': 'value1',
  'key2': 'value2'
}
1 Like