How do you sort elements in an array in Javascript

Posted by Andre Scott | Updated on

The sort() method is used to sort the elements of an array in place and returns the sorted array. The example usage would be as below:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers