typescriptSvelteintermediate

Svelte 5 Universal State Rune

Modern Svelte 5 $state and $derived reactive typing

By ApeType Staff·16 lines·279 characters·1,420 total attempts
SOURCE CODE·typescript
export class TimerState { elapsed = $state(0); running = $state(false); minutes = $derived(Math.floor(this.elapsed / 60)); seconds = $derived(this.elapsed % 60); start() { this.running = true; } reset() { this.elapsed = 0; this.running = false; } }
UTF-8 · Tab indentationStandard Strict Parsing
TRANSCRIBE

Ready when you are.

Test your muscle memory and transcription speed against this exact snippet.

Start Typing
Tip: Press Esc anytime to restart

Best runs on this snippet

#TypistAccWPM
1Henok Yoseph99.36%62
2Henok Yoseph99.36%62
3Gerum Berhanu100%58
4Abel Gideon96.99%52
5Henok Yoseph95.49%51