Lesson on Reduce

function addNumbers(accumulator, currentValue) {
  console.log(`Current accumulator: ${accumulator}`)
  console.log(`Current currentValue: ${currentValue}\n`)
return accumulator + currentValue
}

const startingValue = 10;

[1, 2, 3, 4, 5].reduce(addNumbers, startingValue)