All 45 JavaScript exercises
Scriptdrill is JavaScript practice in your browser. Every exercise gives you a function name, its signature and example calls with the results they should return. You write the function, press Run, and it is checked against the examples and a set of hidden tests with the edge cases you did not think of. The exercises are listed here level by level. 5 are free without an account; Pro unlocks the rest.
Level 1: Basics
Sums, filter and map, includes, reversing words, capitalizing, counting vowels, clamp and range.
Level 2: Arrays and objects
groupBy, countBy, uniqueBy, chunk, zip, flattening one level, pick, stable multi-key sorting and merging settings.
Level 3: Strings and dates
Slugs, truncating with an ellipsis, money with Intl, query strings, aligned text tables, UTC date math and durations.
Level 4: Data shaping
CSV text to objects, totals per customer, pivots, top N with ties, running totals, deep get by path, deep equality and left joins.
Level 5: Async and functions
sleep, retry, Promise.all with a concurrency limit, debounce on a fake clock, memoize, once, pipe, timeouts and running tasks in sequence.
Try the first five exercises free.
No sign-up needed for the first five. If it works for you, Pro unlocks all 45, and a free account saves your progress and your code across devices.
Start practicing free