Multi-step Sign-up

Write the code, see it run, pass the checks.

The problem

  • hard
  • Code
  • Pro

Build a three-step sign-up that shows "Step 1 of 3" and so on. Step 1 asks for "Name" and step 2 for "Email", each with a "Next" button that's disabled while the field is blank. Steps 2 and 3 have a "Back" button, and going back keeps what was typed. Step 3 shows "Name: Ada" and "Email: ada@example.com" (whatever was entered) with a "Create account" button, which replaces it all with "Welcome, Ada!".

Your code must pass

  • Next is disabled until the name is filled in
  • Next moves through the steps
  • Back keeps what was typed
  • Create account welcomes the user