Create store.js inside `src` folder
import { writable } from 'svelte/store';
export const count = writable(0);
Set the Value using .set()
Go to +page.svelte
import { count } from "./store.js";
count.set(10);
Set the Value using .update()
Go to +page.svelte
import { count } from "./store.js";
count.update(n=>n+10);
Update is used to change the value of Store ....it will affect at global level wherever the store is used.