Manipulating Complex Objects--FreecodeCamp

Manipulating Complex Objects--FreecodeCamp
0

#1

var myMusic = [
{
“artist”: “Billy Joel”,
“title”: “Piano Man”,
“release_year”: 1973,
“formats”: [
“CS”,
“8T”,
“LP” ],
“gold”: true
}
// Add record here
var newAlbum = [
{
“artist”: “Dua Lipa”,
“title”: “New Rules”,
“release_year”: 2016,
“formats”: [
“Cd”,
“Cassette”,
“Youtube” ],

}
];

Can anyone help me to solve this please. I am stuck with this problem. Thanks


#2

Your code has declared a second variable which is an array with a single album object in it.

The instructions say to add a new album (a new object) to the existing myMusic array.


#3

Thank you… Got it.

var myMusic = [
{
“artist”: “Billy Joel”,
“title”: “Piano Man”,
“release_year”: 1973,
“formats”: [
“CS”,
“8T”,
“LP” ],
“gold”: true
},
// Add record here
{
“artist”: “Dua Lipa”,
“title”: “New Rules”,
“release_year”: 2016,
“formats”: [“CD”,“Youtube”]
}
];