Alphabetically Sorted Array

Report a typo

Sort the given array in alphabetical order then print it.

Sample Input 1:

Sample Output 1:

[ 'black', 'green', 'orange', 'red', 'yellow' ]
Write a program in JavaScript
let colors = ['green', 'red', 'yellow', 'orange', 'black'];
___

Create a free account to access the full topic