I've passed this lesson, but something is wrong


#1



https://www.codecademy.com/courses/javascript-beginner-en-3bmfN/0/6?curriculum_id=506324b3a7dffd00020bf661#


Hi, everyone! Otávio from Brazil here. I've passed this exercise, but instead of printing 'steve' and 'bill' only, it also prints Bill's address and I can't figure out what's wrong with the code. Help anyone? Thanks a lot!


var friends = new Object();

friends.steve = {};
friends.bill = {};

friends.steve.firstName = "Steve";
friends.steve.lastName = "Smith";
friends.steve.number = "555-0001";
friends.steve.address = ["Main Avenue", "San Francisco", "CA", "90210"];

friends.bill.firstName = "Bill";
friends.bill.lastName = "White";
friends.bill.number = "555-0002";
friends.bill.address = ["Second Avenue", "Los Angeles", "CA", "90215"];

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


#2

Nevermind, guys.... I've just realized I hadn't called the function in the end.