how to iterate over araay of strings injs code example
Example 1: iterate array javascript
array = [ 1, 2, 3, 4, 5, 6 ];
for (index = 0; index < array.length; index++) {
console.log(array[index]);
}
Example 2: iterate array javascript
arr.forEach(function callback(currentValue [, index [, array]]) {
// Ihr Iterator
}[, thisArg]);