Question · Vibe coding with Claude Code course · Module 4: Instagram clone

Quiz: Five lines in the terminal

After typing the word "watch" the terminal with npm run dev shows five lines: GET /gallery?q=w, ?q=wa and so on up to ?q=watch. What is most likely missing in handleChange?

Answer options

  • encodeURIComponent on the phrase
  • key={query} on Suspense
  • clearTimeout of the previous countdown before setting a new one
  • Cleaning up the countdown in useEffect on unmount

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