is the for loop oonly for arrays javacsript code example
Example 1: how to use for loops to work with array in javascript
let myArray = ["one", "two", "three", "four"];
Example 2: how to use for loops to work with array in javascript
for(let i = 0; i < myArray.length; i++){