Joining two Arrays
Given two arrays, return a new array containing all the elements from the given arrays.
Sample Code:
function joinArr(arr1,arr2) {
// Enter your logic here...
}
Examples:
Input: [1,2,3,4],[5,6,7,8]
Output: [1,2,3,4,5,6,7,8]
Explanation: Two arrays have been concatenated into one.
Input: [4,6,3],[1,1]
Output: [4,6,3,1,1]
Explanation: Two arrays have been concatenated into one.