Skip to content

Instantly share code, notes, and snippets.

@halzate93
Created January 31, 2017 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halzate93/facd1fea3998d2ad39cb49e22f1ebce8 to your computer and use it in GitHub Desktop.
Save halzate93/facd1fea3998d2ad39cb49e22f1ebce8 to your computer and use it in GitHub Desktop.
var a = 0;
for (i = 2; i < process.argv.length; i++)
{
var toAdd = parseInt(process.argv[i]);
a += toAdd;
}
console.log (a);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment