Question · Vibe coding with Claude Code course · Module 11: Spotify clone
Repeat all
What does nextIndex(3, 4, "all") return for the last track in a queue of four tracks?
Answer options
- null, because the queue has ended
- 3, the same track from the start
- 4, the index past the end of the queue
- 0, the first track of the queue
You can check the correct answer by solving this task in the CodeWorlds game.