7. Search for a friend -- don't understand anything



What's wrong with this code, for 7? Because, the left, demonstrates nothing, and, I don't understand, a thing it wants me, to do. (The code's a bit, split up.)

var friends = {
    bill: {
        firstName: "Bill",
        lastName: "Cipher",
        number: "(217) 819-2728",
        address: ['Galaxy St.', 'Univille', 'Illuminati, (IL)', '1337']

    steve: {
        firstName: "Steve",
        lastName: "Jobs",
        number: "(696) 969-6969",
        address: ['Place St.', 'Somewhere City', 'Whatever, (WE)', '9001']

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



*Demonstrates nothing, that I, UNDERSTAND; I mean.


I am just learning this now as well, but maybe we can learn together!
As I understand, it works like this.

var list = function(category) // This creates a function called list with a parameter called category.
for (var randomName in category) // This says. Look at all the propertys of the object called category.
console.log(randomName)// Whatever property you find in the parameter called category, print it out.

if you then say list(friends) it will go look up all the property's of friends and print them out.

So randomName is just a place holder. Does this make sense? Hope it does!