如果我有两个总和变量和单个变量。有没有更简单的方法来获得总和?
例子:
var first_one = 5;
var first_two = 5;
var second_one = 5;
var second_two = 5;
var firstTotal = first_one + first_two;
var secondTotal = second_one + second_two;
var total = firstTotal + secondTotal;
return total;