JavaScript Typing Practice

A JavaScript arrow function is a short way to describe an operation. This example doubles each number in an array. Practice the transition from the letter n to the equals sign and the greater-than sign.

const doubles = values.map(n => n * 2);

Trace the arrow function

If values contains two, five, and eight, the result contains four, ten, and sixteen. The parentheses enclose the function passed to map. The arrow consists of two separate keys in a fixed order. Check that pair before increasing your typing speed.

Practice switching between words and symbols →

Python typing practice · Typing practice for programmers · Colemak typing practice