Syntax error missing } NOT!


#1

Here is my code. I'm fairly sure it's correct. I just can't get the system to accept it.

ANY IDEAS????

var friends = {
bill: {
firstName: "Bill",
lastName: "Gates",
number: "(444) 444-4444",
address: ["Right here Street", "The City", "AA", "20121"]
}
steve: {
firstName: "Steve" ,
lastName: "Jobs" ,
number: "(111) 111-1111" ,
address: ["Apple Way", "Big City", "BB", "10121"]
}
shawnee: {
firstName: "Shawn" ,
lastName: "Duq",
number: "(333) 333-3333",
address: ["Here and here", "Good City", "CC", "40121"]
}
jerry: {
firstName: "Jerry" ,
lastName: "Stew",
number: "(999) 999-9999",
address: ["Bowline Terrace", "Sterling", "DD", "20121"]
}
} ;

var list = Function (friends) {
for (var b in friends) {
console.log(b) ;
}
};


#2

Hi can you to do that inside your Object add a , after each proprety.

var friends = {
bill: {
firstName: "Bill",
lastName: "Gates",
number: "(444) 444-4444",
address: ["Right here Street", "The City", "AA", "20121"] 
} , <== here
steve: {
firstName: "Steve" ,
lastName: "Jobs" ,
number: "(111) 111-1111" ,
address: ["Apple Way", "Big City", "BB", "10121"] 
}, <== here
shawnee: {
firstName: "Shawn" ,
lastName: "Duq",
number: "(333) 333-3333",
address: ["Here and here", "Good City", "CC", "40121"] 
}, <== here
jerry: {
firstName: "Jerry" ,
lastName: "Stew",
number: "(999) 999-9999",
address: ["Bowline Terrace", "Sterling", "DD", "20121"] 
}
} ;

#3

var friends = {
bill: {
firstName: "Bill",
lastName: "Gates",
number: "(444) 444-4444",
address: ["Right here Street", "The City", "AA", "20121"]
} ,
steve: {
firstName: "Steve" ,
lastName: "Jobs" ,
number: "(111) 111-1111" ,
address: ["Apple Way", "Big City", "BB", "10121"]
} ,
shawnee: {
firstName: "Shawn" ,
lastName: "Duq",
number: "(333) 333-3333",
address: ["Here and here", "Good City", "CC", "40121"]
} ,
jerry: {
firstName: "Jerry" ,
lastName: "Stew",
number: "(999) 999-9999",
address: ["Bowline Terrace", "Sterling", "DD", "20121"]
}
} ;

var list = Function (friends) {
for (var b in friends)
console.log(b) ;

};
Syntax error - expecting ;


#4

I've tried it with and without commas


#5

first you need commas second look at your function you spelled wrong Function it should be function