Complete the code to import a Svelte component correctly.
<script> import Header from './[1]'; </script>
In Svelte, components are files with the .svelte extension. To import a component, you must include the .svelte file extension.
Complete the code to define the main entry point file in a Svelte project.
<main> <script src="[1]"></script> </main>
app.js or index.js which are common in other frameworks but not default in Svelte.bundle.js which is usually a build output file.The main entry point for a Svelte app is usually main.js, which initializes the app and mounts it to the DOM.
Fix the error in the Svelte project folder structure by choosing the correct folder for components.
src/
[1]/
Header.svelte
Footer.svelte
main.jsIn Svelte projects, reusable UI parts like Header.svelte and Footer.svelte are stored in the components folder inside src.
Fill both blanks to create a Svelte project folder structure with a styles folder and a public folder.
project-root/
src/
components/
[1]/
[2]/The styles folder inside src holds CSS or style files. The public folder at the root contains static files served directly by the server.
Fill all three blanks to complete the Svelte project structure with correct folder names and main file.
project-root/ [1]/ [2]/ App.svelte [3]/ package.json
The src folder contains the source code. Inside it, components holds Svelte components like App.svelte. The styles folder stores CSS files.