WPM
0
Accuracy
100%
Progress
0%
Best
0
TypeScript
function debounce(fn: () => void, ms: number) { let timer: ReturnType<typeof setTimeout>; return () => { clearTimeout(timer); timer = setTimeout(fn, ms); }; }
Click here and start typing
How to play
Type the code snippet exactly, as fast as you can.
Rules
- The timer starts on your first keystroke.
- Correct characters light up; mistakes turn red. Backspace to fix them.
- Press Enter for line breaks. The indentation on the next line is typed for you.
- The run ends when you reach the last character. Esc restarts.
Scoring
- WPM counts correctly typed characters, where 5 characters make one word.
- Accuracy is the share of keystrokes that were right the first time.
- A run only counts as a record at 85% accuracy or higher.
Controls
- Indentation after a newline is typed for you
- Esc restarts
- Records count at 85%+ accuracy
Medals ยท top wpm
Bronze30 wpmSilver50 wpmGold70 wpm