I have 2 different arrays in javascript, they have always the same length and I need to count one element + another element from another array with same index
let arr1 = [1, 2, 3];
let arr2 = [8, 9, 2];
Expected Output
1 + 8 = 9
2 + 9 = 11
3 + 2 = 5
let result = [9, 11, 5]
What would be the easiest and the most elegant way to do it? I tried for loop and map as well but I didn´t find working solution