- 2
Write a program in JavaScript to get the sum output using the inputs. Must work for all examples, add user input as well.
Example 1: arr1 = [2, 6, 8]; arr2 = [4, 3, 4, 4]; output = [4, 6, 1, 2]; Example 2: arr1 = [20, 16, 33, 11]; arr2 = [5, -7, 6]; output = [2, 2, 3, 7, 7];
2 Respostas
+ 5
What is the question?
0
can you elaborate?