A developer is required to write a function that calculates the sum of elements in an
array but is getting undefined every time the code is executed. The developer needs to find
what is missing in the code below.
Const sumFunction = arr => {
Return arr.reduce((result, current) => {
//
Result += current;
//
), 10);
);
Which option makes the code work as expected?
Delisa
4 days agoKatina
7 days agoLynna
8 days agoMarge
9 days agoRaul
9 days agoKatina
11 days ago