Question · Svelte and SvelteKit course · Module 1: Introduction to Svelte
Variables in the Template
How do we insert the value of a JavaScript variable into a Svelte template?
Answer options
- Using {{ variable }}
- Using { variable }
- Using ${ variable }
- Using [[ variable ]]
Show the answer
Correct answer:
- Using { variable }