Manipulating Complex Objects2

Manipulating Complex Objects2
0.0 0

#1

i dont understand what i should do

Your code so far

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

Your browser information:

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

Link to the challenge:


#2

You should add another object onto that one. So you need to add a , next to the curly brace and then start a new object that has a similar structure to that one.

The instructions then tell you want to use for the new object.

This is how it will look.

var myMusic = [
  {
    "artist": "Billy Joel",
    "title": "Piano Man",
    "release_year": 1973,
    "formats": [ 
      "CS", 
      "8T", 
      "LP" ],
    "gold": true
  }, {
    // Add your new object here
  }
];

You then need to use the same key value structure as in the template


#3

ok i do that but it show me 3 first write another six its wrong(sorry for my english i dont know very well


#4

Post what your code looks like now


#5

var myMusic = [
{
“artist”: “Billy Joel”,
“title”: “Piano Man”,
“release_year”: 1973,
“formats”: [
“CS”,
“8T”,
“LP” ],
“gold”: true
}, {
// Add your new object here
}
];
That is my code right now


#6

Okay I didn’t give you the correct answer just to copy and paste it to move on. I gave you a start to work towards figuring it out.

You actually need to create your object where I left the comment // Add your new object here


#7

JavaScript Objects work in a key value pair. You have a key with a value assigned to it.

Look at the current Object.

You have a key called 'artist': with a value "Billie Joel".
A value can also be a array like the "formats" key.

This is the structure of the object.

“artist”: value,
“title”: value,
“release_year”: value,
“formats”: [ values ,
“gold”: value,

You need to replicate that with the data that is given to you in the challenge


#8

where i write that?below the // add your new object here


#9

no no no i understand where i put it


#10

Either below or just delete that comment. Either will work since it is just a comment


#11

aa ok i understand them all