6.List 'em all!


#1

I need help! this is my code:

bill: {
firstName: "Bill",
lastName: "Gates",
number: "555-555-1212",
address: ['One Microsoft Way','Redmond','WA' ,'98052']
},
steve: {
firstName: "Steve",
lastName: "Jobs",
number: "555-555-1213",
address: ['1 Infinity Loop','Cupertino','CA' ,'12345']
}
};

var list = function (friends) {
for (var i in friends) {
console.log(i)
}
}

the error message is:
SyntaxError: Unexpected token :
Thanks


#2

The first line is missing that defines the friends object:

var friends = {

The rest looks fine.


#3

Thanks, can't believe that I missed that