Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

while loop javascript

while (condition) {
	// code
}

// example
let index = 0;

while (index < 10) {
    // code
    index++;
}

//  enjoy :)
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #loop #javascript
ADD COMMENT
Topic
Name
3+1 =