5/8 A bug somewhere


#1
var friends = {

bill:{
firstName: "Bill",
lastName: "Gates",
number:"010-101-0101",
address:['SomeWhere', 'SomePlace']
},
steve:{
firstName: "Steve",
lastName: "Jobs",
number: "101-010-1010",
address:['SomePlace', 'SomeWhere']
},
};

This code works BUT...
I think there is a bug here! I don't understand why to add a comma at the end of Bille and Steve.


#2

For the same reason you include a comma between.

    firstName: "Steve",

and,

    lastName: "Jobs"

They are properties, not statements.


#3

Alright! Thank you :slightly_smiling: