Skip to content

JavaScript: sum

HardGoal: 18 wpm
function sum(numbers) { let total = 0; for (const n of numbers) { total += n; } return total; }

Text · Lesson 1 of 8 · Snippets

Type a short JavaScript snippet exactly as written.

How This Lesson Works

Type the symbols slowly at first. Indentation is added for you when you press Enter.

How Stars Work

Accuracy earns up to four stars: 85%, 90%, 95% and 98%. Type at 18 WPM or faster for a bonus fifth star. Retries give you fresh text, and only your best result is kept.

Not sure where your fingers go? Read the finger placement guide, or take the placement test to find the right lesson for you.

Typing Settings

Text sizeSize of the practice text.

Settings are saved in this browser only.