Last active
September 21, 2017 07:08
-
-
Save molcik/756cac53bcd15ec4c0c462f710dd0214 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var array = [1, 1, 1]; | |
var result; | |
result = array.reduce((current, next) => { | |
return current + next; | |
}) | |
console.log(result); // logs 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment