0
0
Svelteframework~10 mins

Why Svelte exists - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to import Svelte's main function.

Svelte
import [1] from 'svelte';
Drag options to blanks, or click blank then click option'
AcreateApp
BonMount
Ccompile
Dwritable
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing runtime functions like onMount instead of compile.
2fill in blank
medium

Complete the code to explain Svelte's main advantage.

Svelte
Svelte exists because it [1] code at build time, not runtime.
Drag options to blanks, or click blank then click option'
Acompiles
Bruns
Cloads
Drenders
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing compile with run or render.
3fill in blank
hard

Fix the error in the sentence about Svelte's approach.

Svelte
Unlike other frameworks, Svelte does not use a virtual DOM but instead [1] code to update the DOM directly.
Drag options to blanks, or click blank then click option'
Agenerates
Bignores
Cdelays
Dcompiles
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing generates or ignores which are less precise.
4fill in blank
hard

Fill both blanks to complete the explanation of Svelte's benefit.

Svelte
Svelte [1] less code in the browser and [2] faster updates.
Drag options to blanks, or click blank then click option'
Aruns
Bcompiles
Cmakes
Ddelivers
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up runs and compiles or makes and delivers.
5fill in blank
hard

Fill all three blanks to describe Svelte's unique feature.

Svelte
Svelte [1] components at build time, [2] the need for a virtual DOM, and [3] smaller, faster apps.
Drag options to blanks, or click blank then click option'
Acompiles
Bremoves
Ccreates
Denables
Attempts:
3 left
💡 Hint
Common Mistakes
Using creates instead of compiles or creates instead of enables.