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

Writing a Numeric Comparator

Create a comparator function that returns negative, zero, or positive to sort numbers in ascending order.

This lesson is for subscribers

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