I have two arrays and I want to merge them into one array. However, when I attempt to put one array inside the other, I encounter an issue.
var arr=["a","b","c",arr,arr2];
var arr2=["a","b"];
var arr3=[];
arr3=arr[3];
Upon printing out arr, it displays as
["a","b","c",,]
Yet, when I print out arr3, the result is undefined.
How can I resolve this problem?