Skip to content

Instantly share code, notes, and snippets.

@rcstr
Created December 15, 2014 23:43
Show Gist options
  • Save rcstr/e95c2d5e3902cd15bfb0 to your computer and use it in GitHub Desktop.
Save rcstr/e95c2d5e3902cd15bfb0 to your computer and use it in GitHub Desktop.
Function sum() {
var result;
for(var i = 0; i < arguments.length; i++) {
result = result + argumnts[i];
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment