Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

while loop

Create a loop that runs as long as i is less than 10, but increase i with 2 each time.

var i = 0

while(i < 10){
	console.log(i);
    i = i + 2;
}
Source by sites.google.com #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
4+7 =