Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript reduce

const sum = array.reduce((accumulator, element) => {
  return accumulator + element;
}, 0);
Source by www.kindacode.com #
 
PREVIOUS NEXT
Tagged: #javascript #reduce
ADD COMMENT
Topic
Name
1+2 =