173 B
173 B
importance: 4
Sort in the reverse order
let arr = [5, 2, 1, -10, 8];
// ... your code to sort it in the reverse order
alert( arr ); // 8, 5, 2, 1, -10
importance: 4
let arr = [5, 2, 1, -10, 8];
// ... your code to sort it in the reverse order
alert( arr ); // 8, 5, 2, 1, -10