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

Quiz: The result of parseMentions

What will the corrected function parseMentions("Wake up, @channel", members) return?

Answer options

  • [{ kind: "channel", start: 0, end: 0 }]
  • []
  • [{ kind: "channel", start: 9, end: 17 }]
  • [{ kind: "member", memberId: "channel", start: 9, end: 17 }]

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