for loop iterator javascript code example
Example 1: for in javascript
for (let i = start; i < end; i++) {
}
Example 2: how to use for of in javascript
const array1 = ['a', 'b', 'c'];
for (const element of array1) {
console.log(element);
}
for (let i = start; i < end; i++) {
}
const array1 = ['a', 'b', 'c'];
for (const element of array1) {
console.log(element);
}