Question · Vibe coding with Claude Code course · Module 13: Twitch clone

Quiz: as const on the tabs

Why as const on the CHANNEL_TABS list on the channel page?

Answer options

  • The list becomes available in the browser too
  • Without as const Next.js will not render the tab links
  • as const sorts the tabs alphabetically
  • The keys stay exact strings, so tsc rejects a typo in the comparison active === "abuot"

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