manipulating complex objects in javascript code example
Example: JavaScript: Manipulating Complex Objects
var myMusic = [
{
"artist": "Billy Joel",
"title": "Piano Man",
"release_year": 1973,
"formats": [
"CD",
"8T",
"LP"
],
"gold": true
}, // new record starts with a comma
{
"artist" : "Bitty Koel",
"title" : "Picasso Man",
"release_year" : 2020,
"formats" : [
"CD",
"8T",
"LP"
],
"gold" : true
}
];