Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sum of all numbers in an array javascript

const arrSum = arr => arr.reduce((a,b) => a + b, 0)
Source by codeburst.io #
 
PREVIOUS NEXT
Tagged: #sum #numbers #array #javascript
ADD COMMENT
Topic
Name
4+8 =