en.javascript.info/1-js/4-data-structures/8-array-methods/4-sort-back/task.md
2016-03-21 10:16:55 +03:00

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