Question · Vibe coding with Claude Code course · Module 8: Slack clone

Quiz: Change without a previous period

What does percentChange(5, 0) return when the previous week had no messages at all?

Answer options

  • null, and the card says "no data to compare"
  • Infinity, so the card would show "up Infinity%"
  • 100, because every new message is growth
  • 0, because there is nothing to compare with

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