JavaScript · Advanced · Ticket 7Ticket #43 · from Priya Raman, Product Manager
  1. Example
  2. Warm-up 1
  3. Warm-up 2
  4. Ticket
Brief
NEW TICKET#43 · Onboarding

Order setup steps by what they wait for

Priya Raman · Product Manager
Opened today

“The new-account checklist is defined as steps, each with the steps it waits for: "send the first invoice" waits for "add a client" and "set up tax". Show them in an order where every step comes after everything it waits for. When several steps are ready at once, take the one listed first. If some steps can never run (they wait for each other in a circle, or for a step that doesn't exist), return null so we catch the mistake in the config. Can you write setupOrder?”

YOUR PLAN
  1. 1Watch an example2 min
  2. 2Warm-up 11 min
  3. 3Warm-up 21 min
  4. 4Fix the ticket31 min
BY THE END YOU CAN
  • Repeatedly pick the next step that's ready
  • Use every to check that all requirements are met
  • Detect when nothing can move forward
About 35 minutes
Four short steps. Nothing is timed, and you can leave any time.