Contact List Problem


#1

var friends = {

gates: {
    firstName: "Gates",
    lastName: "Watson",
    number: "6584243248",
    address: ['Free Code Camp']
},
bill: {
    firstName: "Bill",
    lastName: "Gates",
    number: "081991391614",
    address: ['Free Code Camp']
}

};
var list = function (friends){
for (var key in object){
console.log("Printing a string");
var myString = "Awesome!";
console.log(myString);
}
};

what is wrong with code above as it keeps saying "Did u create a function called list?"


#2

I think you need to change "object" to either the object name or a variable representing the object.