looping through javascript object : <p>How do you access properties of a javascript object like the following?
Please explain each step if possible.</p>

<pre><code>var contacts = [
{
    "firstName": "Akira",
    "lastName": "Laine",
    "number": "0543236543",
    "likes": ["Pizza", "Coding", "Brownie Points"]
},
{
    "firstName": "Harry",
    "lastName": "Potter",
    "number": "0994372684",
    "likes": ["Hogwarts", "Magic", "Hagrid"]
},
{
    "firstName": "Sherlock",
    "lastName": "Holmes",
    "number": "0487345643",
    "likes": ["Intriguing Cases", "Violin"]
},
{
    "firstName": "Kristian",
    "lastName": "Vos",
    "number": "unknown",
    "likes": ["Javascript", "Gaming", "Foxes"]
  }
 ];


 function lookUp(firstName, prop){

     //code here

 }
</code></pre>

<p>I would like to be able to access the name of a contact. So for example</p>

<pre><code>                      lookUp("Akira", "likes") 
</code></pre>

<p>should give me the name and the likes. And also 
                           lookUp("Drew", "like") 
should give me back 
                            "No such contact".</p>

<p>Thanks a lot in advance!</p>
