To add data to your component, introduce a script tag with a variable. In practice, Svelte components have the script tag at the top of the file.
Print data in templates with curly braces. Data can also be used in attributes.
<script>
let task = 'Mow lawn';
let completed = false;
</script>
<p>
<input type="checkbox" checked={completed}>
{task}
</p>