Skip to content

Instantly share code, notes, and snippets.

@ifkas
Created October 13, 2020 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifkas/233188e7336a800a3fa0bc787755272c to your computer and use it in GitHub Desktop.
Save ifkas/233188e7336a800a3fa0bc787755272c to your computer and use it in GitHub Desktop.
Reduce exercise number solution
let total = numbers.reduce((accumulator, number) => {
return accumulator += number;
}, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment