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

Quiz: The empty state of the gallery

When does PhotoGrid show the invitation to add the first photo?

Answer options

  • While the skeleton is still pulsing
  • When getPhotos() throws an error
  • When getPhotos() returns an empty array (photos.length === 0)
  • When the header has no avatar

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