Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • why do you create your var i 2 times? the for(var i = 0; i < 10; i++) should be enough to create your var i. To try find out if your loop really looped once, add an alert or so to check :) Commented Sep 28, 2011 at 9:24
  • typing mistake, sorry :) Commented Sep 28, 2011 at 9:30
  • Fixed your formatting for you. Please take a moment of care next time. Commented Sep 28, 2011 at 9:35