Question · Vibe coding with Claude Code course · Module 11: Spotify clone

Removing from the queue

Why does the Remove button in the Queue component stand only next to tracks from the Up next list?

Answer options

  • The track that is playing cannot be removed from an array in JavaScript
  • Removing a track that has yet to play does not shift the index of the track that is playing now
  • Queue does not get an onRemove function in its props
  • The Up next list is a copy saved in localStorage

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