Question · Vibe coding with Claude Code course · Module 13: Twitch clone

Quiz: the current chapter

The chapters in the data stand in the order 0:40, 0:00, 0:15, and the recording is at the 20th second. What does currentChapter return?

Answer options

  • Player (start 15): the last chapter from the sorted copy that started before the 20th second
  • Chat and emotes, because it stands first in the data
  • Welcome aboard, because it starts at zero
  • undefined, because the chapters in the data are not sorted

You can check the correct answer by solving this task in the CodeWorlds game.