javascript mehtod to combine the two arrays at the respective index code example
Example: javascript combine two index elements
var array1 = [1, 2, 3, 4];
var array2 = ["a", "b", "c", "d"];
var newArray = array1.map((e, i) => e + array2[i]);
console.log(newArray);