Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Iterate with JavaScript Do...While Loops

var ourArray = []; 
var i = 5;
do {
  ourArray.push(i);
  i++;
} while (i < 5); // it will work once and stop looping.
 
PREVIOUS NEXT
Tagged: #Iterate #JavaScript #Loops
ADD COMMENT
Topic
Name
5+8 =