My code is :
arr1=[2,6,8,56,78,99,100];
arr2=[1,4,6,8,9,99];
arr3=arr1.concat(arr2);
console.log(arr3);
arr3.sort()
console.log(arr3);
But this sort() function gives wrong result. I don't understand why it is giving that result? It should have sorted arr3.