Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

iterate with javascript while loops

var myArray = []



var i = 0;
while(i < 5){
    myArray.push(i)
    i++
}


console.log(myArray);
 
PREVIOUS NEXT
Tagged: #iterate #javascript #loops
ADD COMMENT
Topic
Name
2+3 =