Preview:
const numList = [1, 3, 55, 22, 44]

function oddAndEvenSumReducer(accumulator, value) {
  // write your code here
}

const oddAndEvenSum = numList.reduce(oddAndEvenSumReducer)
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter