You are viewing a single comment's thread. Return to all comments →
I had a very similiar answer.
console.log(arr.reduce((prev, curr) => prev + curr));
Seems like cookies are disabled on this browser, please enable them to open this website
A Very Big Sum
You are viewing a single comment's thread. Return to all comments →
I had a very similiar answer.
console.log(arr.reduce((prev, curr) => prev + curr));