Lesson on Reduce

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

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