I want to sum each value of an array of numbers with its corresponding value in a different array of numbers, and I want to do this without looping through each individual v
In ES6+, you can use arrow function to make the code clear:
var x = [1,2,3];
var y = [2,3,4];
var sum = x.map( (val, i) => val + y[i] );
console.log(sum); //Array [3, 5, 7]
var z = [3,4,5];
var add3 = x.map( (val, i) => val + y[i] + z[i] );
console.log(add3); //Array [6, 9, 12]