But I tried it without $ prefix as shown below but still works.
export const elapsed = derived(
t => Math.round((t - start) / 1000)
The $ prefix is used to show that the variable is observable, you can omit it
Thank you for the confirmation of the behavior.
Oh yes. as that got me confused, I asked and someone replied that even Svelte test code uses the callback without $.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.