The Svelte tutorial presents line
$: doubled = count * 2;
And claims
[..] It's valid (if unconventional) JavaScript [..]
If it's valid in plain JavaScript, what's the meaning of it?
I tried it in the console and $: tt = 5 seems to assign a value of 5 to tt but does nothing to $. It also seems that I can place other strings at the start like fdf: ddd = 44 and it works the same.
Note: I am NOT asking about the role of this in Svelte but in plain JS without Svelte compiler.