zorg222
12-16-2005, 08:44 PM
What I want to know, is how to make a for loop go up by twos.
FE, here is my code as it is, it is going up by ones.
<script type="text/javascript">
var h=0
for(h=0;h<=50;h++)
{
document.write("The magic number is " + h)
document.write(".")
document.write("<br>")
}
</script>
I know it is controlled by the "h++" bit, unless I am missing something.
Help would be appreciated.
FE, here is my code as it is, it is going up by ones.
<script type="text/javascript">
var h=0
for(h=0;h<=50;h++)
{
document.write("The magic number is " + h)
document.write(".")
document.write("<br>")
}
</script>
I know it is controlled by the "h++" bit, unless I am missing something.
Help would be appreciated.