Question · Svelte and SvelteKit course · Module 11: SvelteKit Routing

Dynamic Route

How do you create a dynamic route for /warriors/123?

Answer options

  • src/routes/warriors/:id/+page.svelte
  • src/routes/warriors/[id]/+page.svelte
  • src/routes/warriors/{id}/+page.svelte
  • src/routes/warriors/$id/+page.svelte

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