DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
simple method
var total = [0, 1, 2, 3].reduce((a, b)=> a + b,0); // total == 6
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#simple
#method
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit