FrontendInterviews.dev

Loading problem…

64. Progress Bar IV - Start/Pause/Reset

Hard•
Acceptance: 76.19%
•
🔓3/3 Pro unlocks today

This problem builds on progress-bar-iii. Complete that first, then load your solution to continue.

Build on Progress Bar III with controls.

Requirements:

  • initial state has one empty bar,
  • Start/Pause toggles all running work,
  • Add appends a bar,
  • Reset returns to a single empty bar,
  • still max 3 concurrent bars,
  • paused bars resume from same progress.

Constraints

  • Pause must preserve exact progress
  • Resume must continue from paused point
  • Reset cancels in-flight work and state
  • Max active bars remains 3