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

Quiz: The tuple in DirectMessage

What does the type [string, string] of the memberIds field in DirectMessage mean?

Answer options

  • An array of any length with identifiers
  • Two separate lists: senders and recipients
  • A conversation identifier and its name
  • A tuple: exactly two identifiers, because a private conversation joins two people

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