for loop to get the list of name in an array in js 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
}