Why this is not working

Why this is not working
0

#1

Tell us what’s happening:

Your code so far

var myMusic = [
  {
    "artist": "Billy Joel",
    "title": "Piano Man",
    "release_year": 1973,
    "formats": [ 
      "CS", 
      "8T", 
      "LP" ],
    "gold": true
  }
  // Add record here records={
  
  "artist":"Sonu nigam",
    
    "title": "Vande matram",
    "release year": 1998,
    "formats": [
       "CS", 
      "8T", 
      "LP" 
      
    ],

  

];

Your browser information:

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

Link to the challenge:


#2

You should have an array of 2 objects. The format would look like this in general:

var myArray = [
  {
    prop1: "something",
    prop2: "something else"
  }
, {
    prop1: "another",
    prop2: "more"
  }
];

Notice the comma separating the two objects. You are missing not just the comma, but the opening curly bracket for the next object. It appears that you accidentally commented out the curly bracket and probably accidentally deleted the comma from the original code.


#3

thanks…it helped me