Is it possible to retrieve a value from a forEach array instance?
const numArr = [10, 20, 30, 40, 50];
numArr.forEach(function (num, index, array) {
console.log(array[index] + 100);
});
While attempting to capture the console.log value, I found that it was only returning the sum of the last value in the array.