[FMX]Just an exercise


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;

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