Learn to code with free online courses, programming projects, and interview...e

Learn to code with free online courses, programming projects, and interview...e
0.0 0

#1

Hi everyone,

Completely stuck here. Do I create a new object after the closed “}” ??


#2

Yup, you are just adding another object to the array.


#3

yes, another ‘record’ following the same format or ‘layout’ as the Billy Joel one…

“Add a new album to the myMusic array. Add artist and title strings, release_year number, and a formats array of strings.”


#4

var myMusic = [
{
“artist”: “Billy Joel”,
“title”: “Piano Man”,
“release_year”: 1973,
“formats”: [
“CS”,
“8T”,
“LP” ],
“gold”: true
}
[{
“artist”: “Nas”,
“title”: “illmatic”,
“release_year”: 1994,
“formats”: [
“CS”,
“8T”,
“LP” ]
}]
];

^ it comes back [null]

any ideas?


#5

Nevermind, I got it. Thanks