Sum of two Arrays
Given two arrays, join the arrays and return the summation of every elements from both arrays.
Sample Code:
function sumSum(arr1,arr2) {
// Enter your logic here...
}
Examples:
Input: [1,2,3],[1,2,3]
Output: 12
Explanation: 12 is the result of summing up all the numbers in both arrays.
Input: [-1,-2,-3],[1,-2,-3]
Output: -10
Explanation: -10 is the result of summing up all the numbers in both arrays.