js reduce concat numbers

JavaScript
sum = tot.reduce((a, n) => (a + Number(n)), 0);

Source

Also in JavaScript: