7/8; wrong return, twice


#1

Hi my if/else statement isn't right. It returns 'iemand' instead of steve. Twice. What am I doing wrong ?

var friends={
    bill:{
        firstName: 'Bill',
        lastName: 'Billers',
        number:'54321',
        address:['vondestraat 3','dordrecht']
        },
    steve:{
        firstName:'Steve',
        lastName:'Stevenson',
        number: '12345',
        address:['schaperstraat 4','dordrecht']
        }
    };
    var list =function(){
       for(var i in friends){
        console.log(i);
       }
    }
    var search=function(name){
        for(var key in friends){
            if(friends[key].firstName               ==name){
               // console.log(friends[key]);
                return friends[key];
            }else{
                console.log("iemand");
            }
        }
    }
   // list();
    search("steve");

#2

Oh I see i made a comment of the console.log statement... Well if i correct that it prints the complete sourcecode as an output ???