Can't go to next lesson

Tell us what’s happening:

i don’t know where the mistake is. Any help?

Your code so far


var myMusic = [
{
  "artist": "Billy Joel",
  "title": "Piano Man",
  "release_year": 1973,
  "formats": [
    "CD",
    "8T",
    "LP"
  ],
  "gold": true
}
// Add a record here
];
[
    {
    "artist": "Olakira",
    "title": "In my Maserati",
    "release_year": 2019,
    "formats":[
      "CD",
      "youtube",
      "tiktok"
    ],
    "gold": true
  }
],
[
  {
    "artist": "mustard",
    "title": "balling",
    "release_year": 2019,
    "formats":[
      "CD",
      "Apple Music",
      "Spotify"
    ],
    "gold": false
  }
];

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36.

Challenge: Manipulating Complex Objects

Link to the challenge:

you have not changed the value of myMusic
instead you have created a new variable with a single element inside not stored anywhere

look where the “add a record here” comment is

3 Likes

@shams74 , u need to add a new record inside the existing object.

var myMusic = [
    {
        "artist": "Billy Joel",
        "title": "Piano Man",
        "release_year": 1973,
        "formats": [
            "CD",
            "8T",
            "LP"
        ],
        "gold": true
    },
    // Add a record here
    {
        "artist": "Olakira",
        "title": "In my Maserati",
        "release_year": 2019,
        "formats": [
            "CD",
            "youtube",
            "tiktok"
        ],
        "gold": true
    }
];

Note:: This might not be helpful coz i haven’t started the javascript lessons yet. This is just a guess… :slight_smile:

1 Like

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Thank you for understanding.

2 Likes

oh… sorry :grinning: