Question · Vibe coding with Claude Code course · Module 10: TikTok clone

Filters connected to the preview

How do you check in the code that the filter buttons really change the preview?

Answer options

  • The chosen filter reaches the preview's style, for example through FILTERS[filter].css
  • The filter button has an aria-pressed attribute
  • The FILTERS list has at least four items
  • A click changes the colour of the button

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