60 seconds

Code typing test

The Presspace code typing test has you type real lines of source code in JavaScript, Python, TypeScript, CSS, SQL or Shell, with every bracket, operator and camelCase name left in, then shows which symbols slowed you down.

What do you type in a code typing test?

You type real source code. Each run picks real one-line snippets from the language you choose and strings them together into at least 55 tokens. A JavaScript run might include an arrow function inside a reduce call, a querySelectorAll chain and a destructured await. Python, TypeScript, CSS, SQL and Shell each have their own lines, written the way people actually write them.

Lines are split on spaces, and each piece is typed like a word: type it, press Space, move on. There is no indentation to fight with. The run ends when you finish the last token, which submits itself.

How is code typing speed scored?

The same as every other Presspace test: a token only counts if every character is right, brackets and quote marks included. Expect a lower number than your prose speed. A token like items.filter(Boolean).map((x) is a lot of characters with several Shift presses in it, and one wrong bracket makes the whole token wrong. On this test, accuracy and the keys that slipped are often more useful than WPM.

How can I type code faster?

Learn each symbol as Shift plus a key with the opposite hand, give your right little finger the brackets, semicolon and quote marks, and drill the common pairs until each is one motion. Most speed lost on code is lost looking down for a symbol, not typing letters.

  • Learn symbols as Shift plus a number key. Round brackets, the dollar sign, the asterisk and the ampersand all live on the number row. Hold Shift with the opposite hand and reach up from the home row, then come straight back.
  • Give the right little finger its jobs. On a US layout, the semicolon, both quote marks and the square and curly brackets all belong to it.
  • Type common pairs as one motion. Arrows (=>), strict equality (===) and empty brackets come up constantly.
  • Drill what slipped. After a run, click any key in the slipped list to start a drill built on it.

Where can I get more symbol practice?

For pure symbol work, the Symbols, Hexadecimal and Numbers only challenges on the typing challenges page isolate the keys code is made of, and lesson 11 in the typing lessons covers symbols with a pass mark. Editors are as much about shortcuts as typing, so the shortcut trainer has a VS Code deck too. For a full practice plan, read typing for programmers, and for shortcuts worth learning, the keyboard shortcuts guide.

A code typing test for each language

Each page opens the test above in one language, with the symbols that language leans on and how to type them faster.

Advertisements

Guides that go with this

Questions people ask

Which programming languages can I practise?

Six: JavaScript, Python, TypeScript, CSS, SQL and Shell. Pick one on the options row. Each run strings several real one-line snippets from that language together, written the way people actually write them, so you practise the symbols and naming patterns you meet in your own editor rather than invented examples.

Why is my code typing speed so much lower than my normal WPM?

Code is dense with symbols that need Shift and long reaches to the number row and the right edge of the keyboard, and one wrong bracket makes a whole token wrong. A score well below your prose speed is normal. Symbol fluency is what closes the gap, and the missed keys list shows which symbols to drill first.

Does the code typing test include indentation?

No. Each line is split on spaces into tokens, and you type the tokens with a single space between them, the same way you type words in a normal test. That keeps the focus on symbols and names rather than on tabs and alignment, which your editor handles for you anyway.

Is typing speed useful for programmers?

Programming is mostly thinking, so raw speed is not the goal. What helps is typing symbols and shortcuts without looking, so your attention stays on the problem instead of the keyboard. This test measures exactly that, and the guide to typing for programmers covers the habits and drills that help most.

How do I practise typing symbols?

Run a code test, then click any symbol in the missed keys list to drill it, or press Drill weak keys for a Weak-Key Drill of the keys you miss most. The Symbols, Numbers only and Hexadecimal challenges isolate the same keys, and lesson 11 in the typing lessons covers symbols with a pass mark.

Keep going

Typing tests by length: 15 second typing test · 30 second test · 1 minute typing test · 2 minute test · 5 minute typing test · 10 minute test · custom text

In other languages: Spanish typing test · French typing test · German typing test · Portuguese typing test · Italian typing test · Test de mecanografía en español · Teste de digitação em português