we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "sorting an array"
Arianna
20 Aug 2018
1
2const fruits = ["Banana", "Orange", "Apple", "Mango"];
3
4fruits.sort();        // Sorts the elements of fruits
5 
similar questions
queries leading to this page
sorting an array