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

Warning about unused state

npm run lint finishes with success but prints a warning: 'sortBy' is assigned a value but never used. What do you do?

Answer options

  • You ask Claude whether it is a forgotten feature or needless state, and you either finish the feature or remove the state
  • Nothing, because lint finished with success
  • You turn off the no-unused-vars rule in the ESLint config
  • You add console.log(sortBy) to make the warning go away

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