function sum(){ let result = 0, max = arguments.lenght; for (var i = 0; i < max; i++){ return += arguments[i]; } return result; }