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

Empty categories in the results

What does searchCatalog("shan") return for a category in which nothing matches?

Answer options

  • Nothing: a category without hits is not in the result
  • null in place of the list
  • An empty list, because the result always has four lists: tracks, albums, artists and playlists
  • A list of all the items of that category

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