js take 2 arrays and make new arrays based on 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);