Tell us what’s happening:
I’m lost again. I don’t know how to add separate, identical properties to an object. I do not want to add, delete or change the existing properties or their values in the myMusic object at the top. I simply want to add a new album with the same properties but with different values as the lesson require. I’m assuming they do not want something like this:
‘’’
var myMusic = [
{
“artist”: “Billy Joel”, " new artist",
//etc.
‘’’
but rather a whole new album separate from the top album. That’s what’s hard.
Your code so far
var myMusic = [
{
"artist": "Billy Joel",
"title": "Piano Man",
"release_year": 1973,
"formats": [
"CD",
"8T",
"LP"
],
"gold": true
}
{"artist": "Led Zeppelin",
"title": "In Through The Out Door",
"release_year": 1979,
"formats": ["CD", "Cassette", "LP"],
"gold": true // Add record here
}
];
Your browser information:
User Agent is: Chrome/68.0.3440.75
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/manipulating-complex-objects