menu_book Course Curriculum (Svelte 5) expand_more
Component Syntax
Runes & Reactivity
Composition
Motion & Lifecycle
SvelteKit Routing
Reactive collections
Learn Reactive collections in Svelte 5 with a dedicated explanation, a concept-specific example, a production caution, and a mastery check.
12 min read
•
Beginner
Advertisement
svelte-5-014.svelte
svelte
<script>import { SvelteMap } from "svelte/reactivity";let scores=new SvelteMap();scores.set("A",10);</script>
<p>{scores.get("A")}</p>
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content