Search for friend


var search=function(name){
       for(var key in friends){
           return (friends[key].number);
   may i know the mistake there it tells tour search function is not returning contact information of steve


currently you only returns steve number, not all information about steve


even i edit it to return(friends[key]) instead return(friends[key].number) it is same sceinario


can i see your full code?


thanks, but i got my mistake


That is even better :slight_smile: Good for your debug skills :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.