TypingSpark

Code typing test

Short, original code snippets. Brackets, quotes, operators and line breaks, with indentation filled in for you.

  • Esc new text
  • Timer starts on your first key
  • Switching tabs pauses the test

Why practise typing code?

Code is full of characters that ordinary text rarely uses: braces, brackets, semicolons, equals signs and quotes. Programmers spend more time reading and thinking than typing, but every glance down at the keyboard pulls attention away from the problem. Typing symbols without looking keeps that attention on the code.

How code is scored

After you press Enter, the indentation of the next line is filled in for you, as an editor would. Those automatic spaces are not counted as characters you typed or as keystrokes, so your speed reflects only what you actually typed. Enter itself counts as one character.

Brackets, braces, operators and quotes are characters like any other, and they are where most errors happen. Your result lists accuracy for symbols separately. Code speeds are usually much lower than prose speeds; compare code results with code results. All the formulas.

What the samples cover

  • JavaScript: loops, template strings with ${...}, arrow functions and async/await.
  • Python: indentation-based blocks, list comprehensions and a small class.
  • HTML: nested elements and attributes in double quotes.
  • CSS: properties, values with units and a media query.
  • JSON: keys in quotes, commas and nested arrays.
  • Shell: paths, flags and a pipe.

Each sample is short and complete, and a code test ends when you reach the end of the sample rather than on a timer, so you finish what you started. Every sample was written for TypingSpark.

The symbols that slow most people down

Braces, brackets, the pipe and the backslash all sit under the right little finger, often with Shift, which is why they cause most code errors. Keep your right hand anchored on the home row and reach with the little finger only, then return. Equals, plus and minus are on the top row: reach up with the right ring or little finger. If one symbol keeps tripping you up, add it to a drill with Choose keys on the practice page.

Questions

Which languages are included?

JavaScript, Python, HTML, CSS, JSON and shell commands. Every snippet was written for TypingSpark.

Why is my code speed lower than my text speed?

Symbols sit at the edges of the keyboard and usually need Shift. A code speed well below your text speed is normal.