Skip to content

hsfarid/SortString

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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

About

JavaScript function that returns a passed string with letters in alphabetical order

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published