Last active
May 2, 2016 07:04
-
-
Save zhangolve/23f67bc3e004ab10e65b99ee390b1e21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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", | |
} | |
]; | |
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
有问题。