Intro
Let's discover algorithms and data structures.
Basic JavaScript Sorting
function numberCompare(a, b) {
return a - b;
}
[6, 4, 5, 10].sort(numberCompare);
Let's discover algorithms and data structures.
function numberCompare(a, b) {
return a - b;
}
[6, 4, 5, 10].sort(numberCompare);