Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript loop x times

for(var i = 0;i<x;i++){
	// loop code here
}

var i = 5; // let x = 5
while(i >= 0){
	// loop code here
    x--;
}
 
PREVIOUS NEXT
Tagged: #javascript #loop #times
ADD COMMENT
Topic
Name
7+1 =