Unsure what is wrong with Syntax 7


#1

var friends = {};
friends.bill: {
firstName: "Bill",
lastName: "Gates",
number: "(206) 555-5555",
address: [ "One Microsoft Way", "Redmont", "WA", "585849"]
};
friends.steve = {
firstName:"Steve",
lastName:"Jobs",
number:"(402) 555-5555",
address:["1 Infinite loop","Cupertino","CA","95014"],

var list = function (friends) {
for(var bill in friends) {
console.log(bill);
}
};
var search = function(friends) {
for (var bill in friends) {
if(friends[bill].firstName === name) {
console.log(friends[]);
return friends[];
}
}
};


#2

Sam post HERE with a suggested solution