Question · Svelte and SvelteKit course · Module 2: Components
Order of Component Sections
In what order should the sections appear in a Svelte component file?
Answer options
- <style>, <script>, markup
- <script>, markup, <style>
- markup, <script>, <style>
- The order doesn't matter
Show the answer
Correct answer:
- <script>, markup, <style>