Skip to content

Instantly share code, notes, and snippets.

@zhangolve
Last active May 2, 2016 07:04
Show Gist options
  • Save zhangolve/23f67bc3e004ab10e65b99ee390b1e21 to your computer and use it in GitHub Desktop.
Save zhangolve/23f67bc3e004ab10e65b99ee390b1e21 to your computer and use it in GitHub Desktop.
/*
var myMusic = [
{
"firstalbum":[{ "artist": "Billy Joel",
"title": "Piano Man",
"release_year": 1973,
"formats": [
"CS",
"8T",
"LP" ],
"gold": true
}],
// Add record here
"secoundalbum":[{ "artist": "Meacial Jackson",
"title": "chain",
"release_year": 1983,
"formats": [
"CS",
"8T",
"LP" ],
"gold": true
}]
}];
*/
//下面是正确的运行
var myMusic = [
{
"artist": "Jerome",
"middle": "Lester",
"last": "Howard",
},
{
"artist": "Harry",
"title": "Moses",
"release_year": 1997,
"formats":[
"CD",
"Cassette"
]
},
{
"first": "Louis",
"last": "Feinberg",
}
];
@zhangolve
Copy link
Author

有问题。

@zhangolve
Copy link
Author

Instructions
Add a new album to the myMusic JSON object. Add artist and title strings, release_year number, and a formats array of strings.
var ourMusic = [
{
"artist": "Daft Punk",
"title": "Homework",
"release_year": 1997,
"formats": [
"CD",
"Cassette",
"LP" ],
"gold": true
}
];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment