6/6 List 'em all!


I feel like it was quite a leap from 6/5 to 6/6 ... I don't know what is expected of me. Did I miss something? Is there a section I should repeat to better understand what needs to be done here?

var friends = {
bill: {
firstName: "Bill",
lastName: "Gates",
number: "(206) 555-5555",
address: ['One Microsoft Way', 'Redmond', 'WA', '98052']
steve: {
firstName: "Steve",
lastName: "Gates",
number: "(408) 555-5555",
address: ['1 Infinite Loop', 'Cupertino', 'CA', '95014']

var list = function(obj) {
for(var key in obj) {



What seems to be the problem?


The problem above worked for me but i don't understand the (obj) come from in the variable list?

What i put before was.

var list = function(friends) {
for(var key in friends) {



This didn't work for me. I though this was the literal. I don't know I guess the instructions weren't clear ... I'm sorry I've already moved on and I'm trying to recall my confusion of earlier today.

This looks like it should work. But I went back and reworked it to use an empty array var friends = {}
and then friends.bill = {...} instead of bill: {...} I'm not clear on why use one over the other. I felt like I missed something.


Yes but "doesn't work" doesn't say much. What is happening, even if it's wrong, says a lot about what needs to be changed. For example, if you're getting a syntax error, then you'd need to check your curly braces and stuff.