List 'em all! 6/8 Code Academy


#1

Why issn’t this working!!???

var friends =();

friends.bill ={

firstName : "Bill",
lastName : "Gates",
number: "0908989",
address: ["Via Microsoft","West Coast","CA", 25063]

};

friends.steve ={

firstName : "Steve",
lastName : "Jobbs",
number: "9207987",
address: ["Via Apple","Astoria","NY", 98765]

};

var address = [];

var list = function(friends){

for( var address in friends) {

console.log(address);

}
};

list(friends);


#2

the problem is here:

var friends =();

this is not how you create an object.


#3

II thought that you could also do that, but ultimately curly brackets solved the problem!

Thank you!


#4