Javascript setTimeout parameter reversing from loop
<p>This loop is in a function and it counts down from 10, however if I alert the parameter passed using <code>i</code> in the <code>setV</code> function it actually counts up!</p>

<pre><code>for (var i=10;i&gt;0;i--){
setTimeout('setV('+i+',"Out")',100);
}


function setV(c,t){
alert(c);
}
</code></pre>
