#Can someone explain to me why this .reduce() function returns "undefined"?
10 messages · Page 1 of 1 (latest)
looks ok... can you setup a scrim to show?
Uncomment line 10... you need to return from the function
Do I need BOTH returns?
yep, the inner return is only to return for the reduce() callback... you need this for each item THEN you need to return the total that's calculated for the function
👍