Answers for "javascript combine two index elements"

0

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);
Posted by: Guest on August-18-2020

Code answers related to "javascript combine two index elements"

Code answers related to "Javascript"

Browse Popular Code Answers by Language