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

Quiz: the dead isPlaying state

The agent added const [isPlaying, setIsPlaying] = useState(false) and autoPlay={isPlaying}, but setIsPlaying appears nowhere. What did npm run lint show for us?

Answer options

  • An error that stopped lint
  • Only the no-unused-vars warning, and the command finished with success
  • Nothing, because lint does not check unused variables
  • A TypeScript error about the boolean type

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