In this program merged two array and then sorted using temp.but this not correct method.because two array are sorted ,so method should be unique i.e. merging of two sorted i
let Array1 = [10,20,30,40]; let Array2 = [15,25,35]; let mergeArray=(arr1, arr2)=>{ for(var i = arr2.length-1; i>= 0; i--){ let curr1 = arr2[i] for(var j = arr1.length-1; j>= 0; j--){ let curr2 = arr1[j] if(curr1