let arr= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
function disorder(){
for (let i = arr.length; i; i--) {
let j = Math.floor(Math.random() * i);
[arr[i - 1], arr[j]] = [arr[j], arr[i - 1]];
}
return arr;
}
let arr1=disorder(arr)
console.log(arr1)
let arr2=arr1.reverse()
console.log(arr2)