Skip to main content
InterviewHubPRO
Section Overview
Q2

Question 2 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

4%
Svelte & SvelteKit (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What are Svelte 5 Runes and why were they introduced?

junior LevelSvelte 5

In Simple Words: Runes are Svelte 5's modern signal-based reactivity primitives, signaled with a $ prefix. In Svelte 3 and 4, reactivity was based on variable assignment (let count = 0; count++) which worked only at the top level of .svelte files. In Svelte 5:

  • Runes make reactivity universal—they work identically inside components, plain .svelte.js files, classes, and nested functions.
  • Runes replace magic compiler syntax with explicit, predictable function-based signals: $state(), $derived(), $effect(), $props().