Put in order · Vibe coding with Claude Code course · Module 9: Discord clone
Ordering: Elapsed time on the screen
Arrange what happens in ActivityDisplay before the time since the start appears:
Items to put in order
- First draw: now is null, no time is visible yet
- The component draws again with the new now
- After a second setInterval calls setNow(Date.now())
- formatElapsed(start, now) gives a string, e.g. 1:05
You can check the correct answer by solving this task in the CodeWorlds game.