Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript reduce sum

let nums = [1, 2, 3];

nums.reduce((curr, next) => curr + next);
 
PREVIOUS NEXT
Tagged: #javascript #reduce #sum
ADD COMMENT
Topic
Name
3+3 =