Question · Vibe coding with Claude Code course · Module 4: Instagram clone

Quiz: key in a List

What is the best value for key when drawing a list of photos?

Answer options

  • The unique id of the item (for example photo.id)
  • The index from map (index)
  • A random number from Math.random()
  • The photo caption (caption)

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