Recall & Review
beginner
What is a route group in SvelteKit?
A route group in SvelteKit is a folder in the routes directory that groups related routes together without adding extra URL segments. It helps organize routes without changing the URL structure.
Click to reveal answer
beginner
How do you create a route group in SvelteKit?
You create a route group by wrapping a folder name in parentheses, like
(group-name). This folder can contain route files or other folders, but it won't add to the URL path.Click to reveal answer
intermediate
Why use route groups instead of normal folders in SvelteKit?
Route groups help keep your routes organized without changing the URL. Normal folders add to the URL path, but route groups do not, so they keep URLs clean while grouping related pages.
Click to reveal answer
intermediate
Can route groups be nested inside each other in SvelteKit?
Yes, route groups can be nested. You can have folders like
(group1)/(group2)/page.svelte to organize routes deeply without affecting the URL path.Click to reveal answer
beginner
Does a route group folder in SvelteKit affect the URL path?
No, route group folders do not affect the URL path. They are only for organizing files and routes internally, so the URL stays the same as if the group folder wasn't there.
Click to reveal answer
How do you mark a folder as a route group in SvelteKit?
✗ Incorrect
In SvelteKit, route groups are created by wrapping the folder name in parentheses, like (group).
What happens to the URL path when you use a route group folder?
✗ Incorrect
Route groups do not add to the URL path; they only organize routes internally.
Can you nest route groups inside other route groups in SvelteKit?
✗ Incorrect
SvelteKit allows nesting route groups by placing folders with parentheses inside each other.
Why might you use route groups in a SvelteKit project?
✗ Incorrect
Route groups help keep routes organized without affecting the URL structure.
Which of these folder names is a valid route group in SvelteKit?
✗ Incorrect
Only folders with names wrapped in parentheses, like (admin), are route groups.
Explain what a route group is in SvelteKit and why it is useful.
Think about how you keep your files tidy without changing how users see the website address.
You got /4 concepts.
Describe how nesting route groups works and what effect it has on URLs.
Imagine folders inside folders that don't show up in the website address.
You got /4 concepts.