how is this call()-method in javascript is working?
<p>I'm learning about the call()-method in Javascript and trying to understand this ex.
Now my question are:</p>

<ul>
<li>Why I can't see anything in the console(browser); the console.log()-method; is not
working? </li>
<li>How is this anonymus-func working?</li>
</ul>

<p>Thanks for yr time!</p>

<blockquote>
<pre><code>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); // I cant understand this anonymus func ? :(
}
</code></pre>
</blockquote>
