What is the .call() function doing in this Javascript statement?
<p>I'm actively learning javascript, and I came across the following statement:</p>

<pre><code>Object.prototype.toString.call([]); 
</code></pre>

<p>And I don't know what it means or what it does.</p>

<p>I have a vague understanding of <code>.call</code>, in that it allows you to call a method in the context of a different object (I think), but I am having a hard time understanding what role the <code>.call()</code> function is playing in the above statement. So I was wondering if anyone could explain what <code>.call()</code> is doing here?</p>

<p>Thanks!!</p>
