for ecach js code example
Example: foreach loop javascript
const numList = [1, 2, 3];
numList.forEach((number) => {
console.log(number);
});
const numList = [1, 2, 3];
numList.forEach((number) => {
console.log(number);
});