How to access this array?
<p>This is simple but I have no idea where I am going wrong. Could you please let me know how I use the returned data. I have been calling 
<code>favorites[0].name</code> but I get no response.</p>

<pre><code>    person.favourites=function(){
       return [
           {
             'name'= 'Gmail',
             'link'= 'www.gmail.com'
           },
           {
              'name': 'Facebook',
              'link': 'www.facebook.com'
           }
       ];
    };
</code></pre>
