Skip to content

Instantly share code, notes, and snippets.

@jmw511
Created March 14, 2014 14:13
Show Gist options
  • Save jmw511/9548448 to your computer and use it in GitHub Desktop.
Save jmw511/9548448 to your computer and use it in GitHub Desktop.
SimpleAdding
var SimpleAdding = function(num){
var total = 0
for (var i = 1; i<= num; i++){
total = total + i;
console.log(total);
}
};
SimpleAdding(6);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment