Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

syntax of reduce in js

[1,2,3,4,5].reduce((acc, current)=>acc+current, 0)
Source by jsbin.com #
 
PREVIOUS NEXT
Tagged: #syntax #reduce #js
ADD COMMENT
Topic
Name
5+6 =