Answers for "Sorting an Array"

-1

Sorting an Array

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

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language