Course contentsShow
JavaScript
Lesson 899 of 2,72320. Array Iteration and TransformationPro lesson

Descending Order with Comparators

Reverse the comparator logic to sort arrays in descending order by swapping the subtraction operands.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.