Enter your first name and last name, separated by a space, in the first textbox. Your name will appear in the second box in last-name-first format. This is done using the split() method.

Note: This only works for two names separated by a space. It can be liberally adapted to cover many other circumstances.

Please enter your first and last name.

  



See your rearranged name here: