Skip to content

Instantly share code, notes, and snippets.

@peregrinogris
Created February 24, 2012 06:07
Show Gist options
  • Save peregrinogris/1898239 to your computer and use it in GitHub Desktop.
Save peregrinogris/1898239 to your computer and use it in GitHub Desktop.
The sentence, “The quick brown fox jumps over the lazy dog” uses every letter in the English language.
var phrase = "the quick brown fox jumps over the lazy dog"
alert(phrase.replace(/ /g,'').split('').sort().join(''))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment