Complete the code to name the Svelte component correctly.
<script> export let name = "World"; </script> <h1>Hello, [1]!</h1>
In Svelte, component props are used as variables directly without braces inside HTML.
Complete the code to export a Svelte component with the correct file naming convention.
<!-- File name: [1] --> <script> export let message = "Hi!"; </script> <p>{message}</p>
Svelte components should be named with PascalCase and have the .svelte extension.
Fix the error in the component import statement by completing the blank.
<script> import [1] from './button.svelte'; </script> <Button />
When importing a Svelte component, use the PascalCase name matching the component's file name.
Fill both blanks to define and use a Svelte component with correct naming conventions.
<script> import [1] from './[2].svelte'; </script> <[1] />
Component names and file names should use PascalCase and match exactly.
Fill all three blanks to create a reusable Svelte component with proper naming and usage.
<script> export let [1] = ""; </script> <h2>[2]</h2> <!-- Usage --> <script> import [3] from './Title.svelte'; </script> <[3] [1]="Welcome!" />
Props use lowercase names, displayed with curly braces, and component names use PascalCase.