JavaScript function that returns an input string with letters in alphabetical order Here are the steps used to achieve this
- Accept an input string from a user through prompt
- Create a function which will first split the string into an array of letters using the split() function
- Then sort the letters using the sort() function
- And finally join the letters into a string using the join() function
- Now render the result using the window alert function