Question · Vibe coding with Claude Code course · Module 11: Spotify clone
Repeating one track
What happens at the end of a track when the audio element has loop={repeat === "one"}?
Answer options
- The browser itself goes back to the start of the track, and the ended event does not arrive
- ended arrives, and handleEnded sets the same index
- pause arrives, and the button changes to Play
- The player moves to the next track and turns repeat off
You can check the correct answer by solving this task in the CodeWorlds game.