common method to iterate array and list code example
Example: iterate through list javascript
const array = ["hello", "world"];
for (item of array) {
//DO THIS
}
const array = ["hello", "world"];
for (item of array) {
//DO THIS
}