Skip to content

Instantly share code, notes, and snippets.

@having-fun-coding
Created May 18, 2015 19:26
Show Gist options
  • Select an option

  • Save having-fun-coding/2542990b8a6d08435d0b to your computer and use it in GitHub Desktop.

Select an option

Save having-fun-coding/2542990b8a6d08435d0b to your computer and use it in GitHub Desktop.
Baby Steps | Node Program
function plus(x,y) { return x+y };
console.log(process.argv.slice(2).map(Number).reduce(plus));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment