Real-World Projects
Twelve projects, ordered by difficulty and mapped to each module. Projects are where concepts become skills — build every one, push it to GitHub, and write a short README explaining what you learned.
JSONPlaceholder (fake REST), PokéAPI, REST Countries, GitHub API, Open-Meteo (weather), DummyJSON (products/carts/auth).
After Module 1 — Foundations
Build: a module of pure functions over an expense array: addExpense (non-mutating), totalByCategory, topN, filterByMonth, monthlyAverage.
Requirements: no mutation anywhere; use map/filter/reduce; verify with console.assert; a closure-based createTracker() holding private state.
You practice: closures, array methods, immutability discipline.
Build: your own once, memoize, debounce, groupBy, pick, omit — with a small test file proving each works.
You practice: closures, higher-order functions, this-awareness. These exact functions are also interview staples.
After Module 2 — ES6+
Build: three modules — questions.js (data), scoring.js (logic, named exports), runner.js (default export). Immutable score updates via spread; destructured question fields; template-literal output.
Stretch: lazy-load a "hard mode" question pack with dynamic import().
Build: a cart as pure functions: addItem, removeItem, updateQty, applyCoupon, totals — every operation returns a NEW cart object (spread everywhere). Options-object parameters with defaults throughout.
You practice: immutable update patterns — the exact skill Redux/React state management needs.
After Module 3 — Promises
Build: a page fetching the same data from two endpoints, showing which "wins" (Promise.any), a 3-second timeout (race), automatic retry on failure, and a status board rendered from allSettled results.
You practice: every combinator, error recovery, DOM updates from async state.
Build: a published-quality module: wait, withTimeout, retry (with backoff), your own promiseAll, promiseAllSettled, and deferred(). Document each with JSDoc comments.
Stretch: add a test suite with Vitest — testing async utilities teaches you fake timers.
After Module 4 — Async/Await
Build: input a username → fetch profile → fetch repos (dependent) → fetch languages for top 5 repos in parallel with mapLimit(…, 3, …) → render a summary. Handle 404 (user not found) and 403 (rate limit) distinctly.
You practice: dependent vs parallel requests, bounded concurrency, real error taxonomy.
Build: city search (REST Countries for coordinates) → weather from Open-Meteo → show current + 5-day forecast. Loading skeletons, an error banner with a retry button, and AbortController to cancel stale searches when the user types again.
You practice: chained APIs, cancellation, UX around async states.
Build: a CLI (node report.js sales.csv --by=month) that reads files with fs/promises, parses args with destructuring, transforms with array methods, and writes a Markdown report. Process multiple files concurrently with a limit.
You practice: Node async I/O — the bread and butter of backend scripting.
Capstones — combine everything
Build: feed it a list of URLs; it checks each with a timeout and 2 retries, at most 5 concurrent, then prints a table of status/latency and writes report.json. Add --fail-fast (Promise.all semantics) vs default (allSettled semantics) flags.
Build: an in-memory async job queue class: queue.add(job) returns a Promise resolved when the job finishes; N workers pull jobs concurrently; failed jobs retry with backoff then land in a dead-letter list; emit progress events.
Why: this is a miniature of real systems (Bull, Sidekiq) — superb interview talking point.
Build: an Express backend (async route handlers, central error middleware, a couple of endpoints proxying/aggregating a public API with Promise.all) + a vanilla-JS frontend using fetch with loading/error/empty states. Deploy it (Render/Railway free tier).
Milestone: when this is deployed and you can explain every async decision in it, you're genuinely backend-ready.