trying to make the code using javascript call to work
<p>Unfortunately this code below does not print anything on the firebug console, neither does it throw an error, not sure what is wrong with this code.</p>

<pre><code>$(document).ready(function(){

var animals = [  
      {species: 'Lion', name: 'King'},  
      {species: 'Whale', name: 'Fail'}  
    ];  

    for (var i = 0; i &lt; animals.length; i++) {  
      (function (i) {   
        this.print = function () {   
          console.log('#' + i  + ' ' + this.species + ': ' + this.name);   
        }   
      }).call(animals[i], i);  
    }  

});
</code></pre>
