What am I doing wrong? 6/8


#1

var friends = {};

friends.bill: {
firstName: "Bill",
lastName: "Panch",
number:6300111,
address: ['valley of peace', 24, 'Cayo District']
};
friends.steve: {
firstName: "Steve",
lastName: "Pineda",
number: 6049307,
address: ['valley of peace', 24, 'Belmopan District']
};

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


#2

already sovle it
var friends = {

bill: {
firstName: "Bill",
lastName: "Panch",
number:6300111,
address: ['valley of peace', 24, 'Cayo District']
},
steve: {
firstName: "Steve",
lastName: "Pineda",
number: 6049307,
address: ['valley of peace', 24, 'Belmopan District']
}
}
var list = function(friends) {
for (var i in friends) {
console.log(i);
}
};