Skip to content

Instantly share code, notes, and snippets.

@waimyokyaw
Created March 17, 2018 03:38
Show Gist options
  • Save waimyokyaw/49094f17c3e2dba41ae3c8901a8e04fa to your computer and use it in GitHub Desktop.
Save waimyokyaw/49094f17c3e2dba41ae3c8901a8e04fa to your computer and use it in GitHub Desktop.
var sum = [1, 2, 3].reduce((a, b) => a + b, 0);
console.log(sum); // 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment