javascript turn a word alphabetically code example
Example: javascript return string in alphabetical order
function alphabet_Soup(str) {
return str.split("").sort().join("");
}
console.log(alphabet_Soup("Python"));
console.log(alphabet_Soup("Exercises"));
//My Solution
function alphaOrder(str) {
return str.split("").sort().join("");
}
console.log(alphaOrder("webdev"))