[FMX]Just an exercise

Hi,

I’m attempting to modify the function below to accept an abitrary number of inputs. I think storing them in a variable then combining them is the method, but could use guidance.

function combine(a,b){
var result = a + b;
return result;
}
combine(10,20)

I would like to pass any number of parameters to combine for addition, ie. combine(n,n,n,n,n,n,)