sort array ij js
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.sort(); // Sorts the elements of fruits
0
0
numArray.sort(function(a, b) {
return a - b;
});
Thank you!
0
0
Are there any code examples left?
New code examples in category Javascript