Put in order · Vibe coding with Claude Code course · Module 11: Spotify clone
The end of a track step by step
Arrange what happens at the end of a track with repeat off when there is a next one in the queue:
Items to put in order
- The ended event
- The browser loads the new file and, thanks to autoPlay, starts playing
- handleEnded sets the index of the next track
- The pause event (paused is already true)
You can check the correct answer by solving this task in the CodeWorlds game.