Chapter 8: Forms and Regular Expressions

Return to Chapter 8

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Formatting and Sorting Strings

See it run: Formatting and Sorting Strings

Script 8.6

This JavaScript takes a bunch of names in any format and order and turns them into a neat and orderly list.