Why can't I use addition like this in foreach?
<p>Javascript's foreach equivalent:</p>

<pre><code>for ( var i in products )
{
    document.write("Write" + i + 1 );
}
</code></pre>

<p>Output:</p>

<pre><code>Write01
</code></pre>

<p><strong>Edit:</strong>
I tried parsing <code>i</code> into an integer.</p>

<pre><code>for ( var i in products )
{
    document.write("Write" + parseInt(i) + 1 );
}
</code></pre>
