title: Javascript. It keeps printing 4 times
body: <p>It keeps printing 4 times.</p>
  
  <p>Code:</p>
  
  <pre><code>var friends = {};
   friends.bill = {
    firstName: "Bill",
    lastName: "Gates",
    number: "(206) 555-5555",
    address: ['One Microsoft Way','Redmond','WA','98052']
  };
  friends.steve = {
    firstName: "Steve",
    lastName: "Jobs",
    number: "(408) 555-5555",
    address: ['1 Infinite Loop','Cupertino','CA','95014']
  };
  
  var list = function(obj) {
    for(var prop in obj) {
      console.log(obj);
    }
  };
  list(friends.bill);
  </code></pre>
  
  <p>I want a result to be this:    </p>
  
  <pre><code>{ firstName: 'Bill',
    lastName: 'Gates',
    number: '(206) 555-5555',
    address: [ 'One Microsoft Way', 'Redmond', 'WA', '98052' ] }
  </code></pre>
  
  <p>not </p>
  
  <pre><code>Bill
  Gates
  (206) 555-5555
  [ 'One Microsoft Way', 'Redmond', 'WA', '98052' ]
  </code></pre>
  
  <p>and not</p>
  
  <pre><code>      { firstName: 'Bill',
    lastName: 'Gates',
    number: '(206) 555-5555',
    address: [ 'One Microsoft Way', 'Redmond', 'WA', '98052' ] }
  { firstName: 'Bill',
    lastName: 'Gates',
    number: '(206) 555-5555',
    address: [ 'One Microsoft Way', 'Redmond', 'WA', '98052' ] }
  { firstName: 'Bill',
    lastName: 'Gates',
    number: '(206) 555-5555',
    address: [ 'One Microsoft Way', 'Redmond', 'WA', '98052' ] }
  { firstName: 'Bill',
    lastName: 'Gates',
    number: '(206) 555-5555',
    address: [ 'One Microsoft Way', 'Redmond', 'WA', '98052' ] }
  </code></pre>
  
  <p>what will I do?</p>