What's the differenct between passing a function and the function call itself in javascript?
<p>In the application I'm building I'm polling for a status update and I have noticed that if the call is made as follows the timeout fires continuously:</p>

<pre><code>setTimeout($.get("http://localhost:8080/status", function(data) { UpdateStatus(data);}), 1000);
</code></pre>

<p>While if use a function instead the timeout fires every 1000 ms:</p>

<pre><code> setTimeout(function() {$.get("http://localhost:8080/status", function(data) { UpdateStatus(data);})}, 1000);
</code></pre>

<p>Why?</p>
