I found this example in MDN about .reduce() method. what does currentValue,initialValue do/mean here?
const array1 = [1, 2, 3, 4];
// 0 + 1 + 2 + 3 + 4
const initialValue = 0;
const sumWithInitial = array1.reduce(
(accumulator, currentValue) => accumulator + currentValue,
initialValue /
```//what does currentValue,initialValue do . I would understand if it had accumulator+currentValue. But what does the comma ,initialValue do/ mean here? I've never seen a+b,c. I don't know what b,c would do in this case.
);
`console.log(sumWithInitial);
`// Expected output: 10
I try reading the MDN documentation to understand more things , but I couldn't understand that part.