Javascript Iteration Example

This example sets a variable to 0 and increments it by 1 until its value is ten. If it is less than 10 it prints the current value of the variable on the screen.

Valid XHTML 1.0!