Why doesen't prompt() inside a for loop in javascript work for my code below?
<p>Why doesen't prompt() inside a for loop in javascript work for my code below?</p>

<pre><code>var P = [];
for(i=0;i++;i&lt;10)
{
    var g=parseInt(prompt("What is the money you paid in"+i+ "month?"));
    P[i]=g;
}
</code></pre>
