Where am I going wrong?


#1

var list = function (friends) {
for (friends) {
console.log(object[key]);
}
};

var friends = {
bill: {
firstName: "Bill",
lastName: "Gates",
number: "(206) 555-5555",
address: ['One Microsoft Way','Redmond','WA','98052']
},
steve: {
firstName: "Steve",
lastName: "Jobs",
number: "(222) 222-2222",
address: ['One Apple Way','LA','CA','93028']
},
agasthya: {
firstName: "Agasthya",
lastName: "Krishna",
number: "(333) 333-3333",
address: ['One Doctor Way','Goregoan East','MH','12345']
}
};


#2

and it is saying to put a FOR/IN loop which I absolutely don't get