Created
October 18, 2020 20:35
-
-
Save jonathan-fielding/56171b66a6b268ffa5b97afcc7be8e9a to your computer and use it in GitHub Desktop.
Array sort
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fruits = ["Banana", "Orange", "Apple", "Mango", "Kiwi"]; | |
const sortedFruit = fruits.sort(); | |
console.log(sortedFruit); // ["Apple", "Banana", "Kiwi", "Mango", "Orange"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment