Skip to content

Instantly share code, notes, and snippets.

View shawn01001's full-sized avatar

Shawn Seibert shawn01001

View GitHub Profile
@shawn01001
shawn01001 / gc1_refactored.js
Last active August 29, 2015 13:57
Refactored Code for Group Project -- DBC Phase 0/week 2
// refactored code
// first set of functions received from Jake
// sum function worked upon receiving; did not modify
var sum = function(array){
var total = 0;
for(var index in array)
total += array[index];
return total;
}