6. List em


I passed the exercise just looking for some clarification:

Why is it logging the names with lower case?

Also if I put console.log(friends) it prints out absolutely everything ( including the {} brackets )
Why does it do that? And what would be the proper code to execute this?

var friends = {
    bill: {
        firstName: "Bill",
        lastName: "Gates",
        number: "206-555-5555",
        address: ['One Microsoft Way', 'Washington', 'Columbia'],
    steve: {
        firstName: "Steve",
        lastName: "Jobbs",
        number: "306-555-5555",
        address: ['One Infinity Court', 'Cupertino', 'California'],
    ariana: {
        firstName: "Ariana",
        lastName: "Trafford",
        number: "905-555-5555",
        address: ['555 Simcoe Street', 'Oshawa', 'Ontario'],

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


It's not logging the proper names, but the key names of the members in the friends object. Your list function does what it is supposed to, list the keys. Since you are using the global object, friends, you don't need the parameter. The object is accessible to the function.

    var list = function () {