function mergeArrays(arr1, arr2) {
let arr3 = [...arr1, ...arr2];
console.log(arr1, arr2, arr3);
}
mergeArrays([1,2,3,4], [5,6,7,8]);
function mergeArrays(arr1, arr2) {
let arr3 = arr1.contact(arr2);
console.log(arr1, arr2, arr3);
}
mergeArrays([1,2,3,4], [5,6,7,8]);
function mergeArrays(arr1, arr2) {
let arr3 = arr1.concat(arr2);
console.log(arr1, arr2, arr3);
}
mergeArrays([1,2,3,4], [5,6,7,8]);