Question · Vibe coding with Claude Code course · Module 9: Discord clone

Quiz: getHighestRole

What does the getHighestRole(member, roles) function return?

Answer options

  • The member's role with the highest position, or null
  • All server roles sorted by position
  • The member's role with the lowest position
  • The number of the member's roles

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