Loops
Loops are text printing from an integer to its next number eg 1 to 100
while loop
There are two parts to javascript while loop
*The conitional statements must be true for while loop's code to be executed
*The while loop codes that condain curley brases {} Will be executedif condition is true
When while loop begins in javascript interpreter cheakes cheaks the condition statement is true then its executed[QUOTE]<html>
Quote:
<script type="text/javascript">
var a=0
var c="</br>"
Document.write("While loop begining")
document.write(c)
While (a<=10)
{
document.write(a)
document.write(c)
a++
}
</script>
</body>
</html>
Out put
Quote:
1
2
3
4
5
6
7
8
9
10