Created
September 13, 2015 06:35
-
-
Save nrm176/bed9cf2ba18d21ce8fc7 to your computer and use it in GitHub Desktop.
Just trying to get used to how Gist works...
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 nums = [1,2,3,4,5] | |
var ans = nums.reduce(function(x,y){ | |
return x+y | |
}) | |
console.log(ans) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment