title: Javascript Object.Property logging undefined
body: <p><code>printPerson</code> takes an object as an argument, its loop iterates trough all its properties and is suposed to print them all out.</p>
  
  <p>As you can see I've logged both the <code>person</code> and <code>property</code> variables and they are working fine. <code>person</code> is identified as an object, and <code>property</code> as a string with the correct property name, indicating that the loop is also working fine. But when it comes to logging <code>person.property</code>, the return value is <code>undefined</code>. </p>
  
  <p>What am I missing?</p>
  
  <pre><code>var bob = {
      firstName: "Bob",
      lastName: "Jones",
      phoneNumber: "(650) 777-7777",
      email: "bob.jones@example.com"
  };
  
  var mary = {
      firstName: "Mary",
      lastName: "Johnson",
      phoneNumber: "(650) 888-8888",
      email: "mary.johnson@example.com"
  };
  
  var contacts = [bob, mary];
  
  function printPerson(person) {
      for (property in person){
        console.log(person);
        console.log(property);
        console.log(person.property);
      }
  }
  
  function list(){
      for (var i=0;i&lt;contacts.length;i++){
          printPerson(contacts[i]);
      }
  }
  
  list();
  </code></pre>