DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
reduce javascript
let array = [36, 25, 6, 15]; array.reduce((acc, curr) => acc + curr, 0) // 36 + 25 + 6 + 15 = 82
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#reduce
#javascript
ADD COMMENT
Topic
COMMENT
Name
3+7 =
Submit