for loop and array javascript code example
Example 1: javascript loop and array
var array = ["hello","world"];
array.forEach(item=>{
console.log(item);
});
Example 2: how to use for loops to work with array in javascript
let myArray = ["one", "two", "three", "four"];