Tell us what’s happening:
Describe your issue in detail here.
what are those two elements
**Your code so far**
var myMusic = [
{
"artist": "Billy Joel",
"title": "Piano Man",
"release_year": 1973,
"formats": [
"CD",
"8T",
"LP"
],
"gold": true
}
];
**Your browser information:**
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Challenge: Manipulating Complex Objects
Link to the challenge:
You should add a new element. This is one element in the array myMusic:
{
"artist": "Billy Joel",
"title": "Piano Man",
"release_year": 1973,
"formats": [
"CD",
"8T",
"LP"
],
"gold": true
}
You need to add one more. The end result should have two elements.
For example:
const myPets = [
{
"name": "Fifi",
"species": "cat"
}
]
has one element. If I want to add another…
const myPets = [
{
"name": "Fifi",
"species": "cat"
},
{
"name": "Fido",
"species": "dog"
}
]
That’s what you need to do for the challenge, add another element. I don’t think it cares what the values are, just add another element.
system
Closed
3
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.