take part of array with loop javascript code example
Example: javascript loop through array
let array = ['Item 1', 'Item 2', 'Item 3'];
for (let item of array) {
console.log(item);
}
let array = ['Item 1', 'Item 2', 'Item 3'];
for (let item of array) {
console.log(item);
}