function addAll(){ var result =0; for(const number of arguments){ result += number; } return result; } addAll(1,2,3,4,5,6,7,8,9,10)