5. Tossing in an Array


#1

  1. Tossing in an Array

Missing before statement


var friends = { 
   bill :{
       firstName: "Bill" ,
       lastName: "fdafdsa",
       number: "dsad1341231"} ,
       address: ['One Microsoft Way','Redmond','WA','98052'] , 
}
       
   steve: {
       firstName: "Steve" ,
       lastName: "fdafdsa",
       number: "dsad1341231"
       address: ['Two Microsoft Way','Redmond','WA','98052'] ,
}

}


#2

Tried putting a comma after the first argument too, still the same error.

Is it a bug?

Thanks


#3

number: "dsad1341231"} , / / remove }

and
add a , here

var friends = { 
   bill :{
       firstName: "Bill" ,
       lastName: "fdafdsa",
       number: "dsad1341231"} ,
       address: ['One Microsoft Way','Redmond','WA','98052'] , 
}  // here add a ,

and you missed a , here

number: "dsad1341231" // here


#4


you can see a bracer..it's wrong


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.