title: What is the difference between set() and update() method in Svelte Store?
body: <p>I'm new to Svelte Store. <a href="https://svelte.dev/tutorial/writable-stores" rel="noreferrer">Here in svelte tutorial</a>, they used <code>update()</code> method in <code>&lt;Incrementer/&gt;</code> and <code>&lt;Decrementer/&gt;</code> components to update value. But in <code>&lt;Resetter/&gt;</code>, they used <code>set()</code> method to reset value. What exactly is the difference between <code>update()</code> and <code>set()</code> method in svelte store?</p>