Question · Vibe coding with Claude Code course · Module 5: Reddit clone

Quiz: Toggle upvote

What happens when userVote === 'up' and the user clicks upvote again?

Answer options

  • A second upvote is added
  • It changes to a downvote
  • Nothing happens
  • The upvote is undone, userVote = null

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