Svelte provides writable stores for global state management.
<script>\nimport { writable } from "svelte/store";\nexport const count = writable(0);\n</script>
<script>\nimport { writable } from "svelte/store";\nconst score = writable(10);\n</script>