Help on 5/8


#1

var friends = {
bill: {
firstName: "Bill",
lastName: "Gates",
number: "(206) 555-55555"
address: ['One Microsoft Way','Redmond','WA','98052']
}
steve: {
firstName: "Steve",
lastName: "Jobs",
number: "(206) 666-6666"
address: ['One Apple Way','Greenmond','CA','14910']
}
};

it says SyntaxError: Unexpected identifier 'address'. Expected '}' to end a object literal.


#2

It gives that error because you forgot a comma after the parameter above it. So when it jumps down a line, it isn't expecting to find another line.


#3

thanks a lot it worked


#4

and why I got the same? its weird it work with 1 friend but when I add steve it stop working
var friends = {
bill: {
firstName: "Bill",
lastName: "Gates",
number: "(206) 555-5555",
address: ['One Microsoft Way','Redmond','WA','98052']
}
steve: {
firstName: "Steve",
lastName: "Jobs",
number: "(206) 555-5555",
address: ['Apple','Redmond','WA','98052']
}
};
SyntaxError: missing } after property list


#5

oppps I got the error! I was missing a coma (,) after closing the bracket for bill,.. issue solve!