- 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];

8th May 2021, 9:27 AM
Swapnil Bhakare
Swapnil Bhakare - avatar
2 odpowiedzi
+ 5
What is the question?
8th May 2021, 9:30 AM
Genuine Stalwart
Genuine Stalwart - avatar
0
can you elaborate?
8th May 2021, 10:00 AM
ACADEMIC
ACADEMIC - avatar