If you want to sum all numeric columns, and you don't need a formula column, you could do:
NamesDefaultToHere(1);
// Make a table to work with
nr = 10;
nc = 3;
dt = NewTable("Some Continuous Data");
For(c=1, c<=nc, c++,
dt << NewColumn("Col "||Char(c), Numeric, Continuous, Formula(RandomInteger(1, 10)));
);
dt << AddRows(nr);
// Get the data into a matrix
mat = dt << GetAsMatrix;
// Get the sum of each row
sumVec = (VSum(mat`))`;
// Add the sum column
dt << NewColumn("Sum", Numeric, Continuous, Values(sumVec));
Note JSL does not have an 'HSum()' so you need to transpose and then transpose back.