Answers for "sorting in javascrpt"

-1

Sorting an Array

const fruits = ["Banana", "Orange", "Apple", "Mango"];

fruits.sort();        // Sorts the elements of fruits
Posted by: Guest on August-17-2021

Browse Popular Code Answers by Language