JSFiddle - React, Tailwind, and code Playground
JavaScript
console.log("Starting...");
[2,2,2,3,4].reduce(function(previousValue, currentValue){
console.log("Previous Value: " + previousValue);
console.log("Current Value: " + currentValue);
},0)