6 List 'em all!


#1

I dont understand what my mistake is.. I dont even know what I am suposed to do! I think to print out my cantact list but it doesn´t work.
here is the code:

var friends = {};

friends.bill = {
firstName:"Bill",
lastName:"Gates",
number:"(206) 555-5556",
address:['One Micro Town', 'Red street']
};
friends.steve = {
firstName:"Steve",
lastName:"Jobs",
number:"(206) 555-5557",
address:['Pillow Town', 'Pink Street']
};
var list = function(friends){
for(var bill in friends)
console.log(bill);
}
}


#2

Ok i found the mistake. that was so stupid there was only missing a { after the for loop.