Engrain by ByteRush

MC.02.02 JuniorCore — asked often

Progress bars, timers and stopwatches

Comes up in: UI coding, Machine coding

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • intervals and cleanup
  • drift
  • pausing/resuming
  • queued progress bars (start N bars, max 3 concurrent)
  • role="progressbar" and ARIA values

Words you will know

—

What you will practise

  • stopwatch
  • countdown timer
  • queued progress bars
  • traffic light (state machine)

Interview questions this answers

  • How would you avoid timer drift in a stopwatch?
  • Run several progress bars with at most three filling at once. How?