Address Book prints more than just bill and steve


#1

I got through with my semi-right code. But after giving first names of the 2 friends(as needed), the console gives away Steve's full details. Where did I go wrong? Can anyone pinpoint it for me please?


var friends= new Object();
friends.bill = {
    firstName: "William",
    lastName: "Shakespeare",
    number: 22222222222,
    address: ["Parades", 2, "kv 78", "Riga"]
    };


friends.steve = {
    firstName : "Steve",
    lastName : "Jobs",
    number : 14533742476,
    address: [82," Strathbrook Rd", "Norbury", "London"]
    };
    
    var list = function(friends) {
    for (var firstName in friends){
     console.log(firstName);
     }
     };


#2

@petrushka,

In some sections of this course, the course-checker Display's data
this you could then identify by placing two EXTRA code-line's:
console.log( "== My End ==" );
console.log( "== All that is displayed now, is the course-checker ==" );

Try it by using

list(firends);
console.log( "== My End ==" );
console.log( "== All that is displayed now, is the course-checker ==" );