I'm having trouble understanding the reduce method. What is the reason why
const sumOfCubes = nums => nums.reduce((a,b) => a + Math.pow(b, 3))
does not function properly, while
const sumOfCubes = nums => nums.reduce((a,b) => a + Math.pow(b, 3), 0)
works as expected?