how to use a for loop js code example
Example 1: javascript loop through array
var myStringArray = ["Hello","World"];
var arrayLength = myStringArray.length;
for (var i = 0; i < arrayLength; i++) {
console.log(myStringArray[i]);
//Do something
}
Example 2: for i
# For loops in Dip
for i = 0 to 5 then print(i)