What will happen when the following code is executed?
const array = [1, 2, 3];
array.forEach((item, index) => {
console.log(item);
});
What will happen when the following code is executed?
const array = [1, 2, 3];
array.forEach((item, index) => {
console.log(item);
});