Why conversions between string to int not working as expected for numbers divisible by 10?
<p>If parseInt is used inside the 'for' loop, it works for all cases. But in this example,  it is not working properly for cases like 99-100 or 999-1000. What happens here? Is the implicit conversion wrong?</p>

<pre><code>function buggy10000(value)
{
    var r = value.split("-");
    var len=r.length;
    var j;
    if(len==2)
    {
        console.log("For in RANGE " + r[0]+"&lt;--&gt;"+r[1]);
        for(j=r[0];j&lt;=r[1];j++)
        {
            console.log(j);
        }
    }

}

buggy10000("98-99");
buggy10000("99-100");  //for not working as expected
buggy10000("100-102");
</code></pre>
