Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Arrays
The sort() Method
The sort() method sorts an array alphabetically.
Try it