Basic JavaScript - Manipulating Complex Objects

everytime im missing something , and it takes so damn long to figure it out. i stayed 30 minutes trying to figure it out what i did wrong , i mean i created another album…i bet its again about one wrong caracter

  **Your code so far**
const myMusic = [
{
  "artist": "Billy Joel",
  "title": "Piano Man",
  "release_year": 1973,
  "formats": [
    "CD",
    "8T",
    "LP"
  ],
  "gold": true
}
{
"artist": "Mutu Padurii";
"title": "cu gura THA"
"release_year": 2168
"formats": [
  "mp3",
  "cd",
]
}
];
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Manipulating Complex Objects

Link to the challenge:

If you try to understand the pattern you see, it will be easier to make less mistakes.

For eg. Notice that the pattern here is

“key”: value,

Which you can read as
key in double quotes, followed by colon, followed by value followed by comma

or even better:
a set of comma-separated key/value pairs

Here is your attempt:


{
"artist": "Mutu Padurii";
"title": "cu gura THA"
"release_year": 2168
"formats": [
  "mp3",
  "cd",
]
}

Is this still a comma-separated set of key/value pairs?

2 Likes

{

“artist”: “Mutu Padurii”,
“title”: “cu gura THA”,
“release_year”: 2168,
“formats”: [
“mp3”,
“cd”
]
}
];

im more stupid then i think :c still cant make it work , and i dont want just copy and paste i wanna trully understand

damn it took me a whille , its so frustrating that lil things like this just destroy your confidence, THANK YOU ALOT !

Listen, I am constantly making mistakes and apologizing for them. The fact is, we are human. Try to give yourself some grace and remember this next time someone makes a mistake in your view (give them some grace as well).

1 Like