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?
Judy
1 months agoChaya
1 months agoLavonna
9 days agoYesenia
11 days agoDelisa
2 months agoDudley
5 days agoCeola
6 days agoBrett
11 days agoJess
1 months agoKatina
2 months agoLynna
2 months agoJustine
1 months agoCornell
1 months agoMarge
2 months agoRaul
2 months agoKatina
2 months ago