Sort Arrays with sort, freeCodeCamp Tutorial

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=OI389ntz1e0



Duration: 3:33
926 views
14


In this lesson we go over the javascript sort method. The sort method in javascript can help sort elements in an array either alphabetically or numerically. Sort method actually alters the array in place. It takes a callback function, this compare function should return a negative number if a should be before b, a positive number if a should be after b, or 0 if they are equal.







Tags:
freeCodeCamp review
javascript sort method
sort method javascript
sort array javascript