Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

while loop

while(<condition here>)
{
	do this;
    increment or decrement;
}

//number variable must be initilize before run the program
/*
while (number <= 10) 
{
	print(number);
    number++;
}
*/
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
4+7 =