Edit in JSFiddle

function sum() {

    var totalSum = 0;

    for (i=0; i<arguments.length; i++) {
        totalSum = totalSum + arguments[i];
    }
    return totalSum;
}

alert( sum(1,3,7,11,25,38,41,56,129) );