Skip to content

JavaScript / Advanced · Free and public

Advanced JavaScript in 7 Days

Design, test and measure a small ordered task-pool library with explicit lifecycle contracts.

Start Day 1 →

Build on what you know

Prerequisites: JavaScript intermediate: modules, promises, async/await, cancellation and tests. The first lesson links to the relevant earlier material. Take extra sessions whenever a prerequisite needs practice.

30 lessons over seven days. Plan around 90 minutes on Days 1–6 for worked explanations, prediction, contrasting cases and independent practice; the exact suggested total appears below each day. Delayed review is extra. These are proposed active-study budgets, not measured completion times.

Runnable examples use the existing JavaScript console editor. Async programs finish with main() so the runner waits for them. Concurrency is cooperative, not CPU parallelism. No account or external API required.

Use hints before solutions, change inputs, and return after a delay. Completion is saved in this browser separately from other courses. Editor edits are not automatically persisted. Download the tested modular project for optional Node.js 22+ local work.

Study by explaining, repairing, and building

Days 1–6 each budget about 90 minutes, including a debugging exercise and an independent checkpoint. Split a day into two sessions if needed. These are planning estimates; take longer whenever you need to rebuild an idea.

Predict a worked example before running it. Trace the contract in your own words, repair the day's plausible mistake, then close the examples and attempt the checkpoint. Use its acceptance cases to test a boundary as well as an ordinary input.

After checking a solution, change the input and explain why your version still works. Begin your next session by rebuilding a small part from memory. Day 7 combines the ideas in a project; Come Back Later adds delayed practice and a readiness check for your next step.

Day 1 · About 90 minutes

Objects & Callbacks

Trace prototypes, receivers and private state before designing a small API.

  1. Properties & Prototypes 20 min · Read, predict, build and test
  2. this, call() & bind() 25 min · Read, predict, build and test
  3. Classes & Private State 20 min · Read, predict, build and test
  4. Checkpoint: Bounded Counter 25 min · Independent practice

Day 2 · About 90 minutes

Iteration & Demand

Build lazy finite pipelines and close unfinished iterators.

  1. Iterable Protocols 20 min · Read, predict, build and test
  2. Generators & Cleanup 25 min · Read, predict, build and test
  3. Lazy Pipelines 20 min · Read, predict, build and test
  4. Checkpoint: Lazy Batches 25 min · Independent practice

Day 3 · About 90 minutes

Concurrency & Cancellation

Bound active work, preserve ordering and explain cooperative settlement.

  1. Bounded Concurrency 25 min · Read, predict, build and test
  2. Demand & Pull Control 20 min · Read, predict, build and test
  3. Cancellation & Settlement 20 min · Read, predict, build and test
  4. Checkpoint: Ordered Work 25 min · Independent practice

Day 4 · About 90 minutes

Library Contracts

Specify errors, ownership and callback behavior with observable rules.

  1. Error Types & Causes 25 min · Read, predict, build and test
  2. Snapshots & Ownership 20 min · Read, predict, build and test
  3. Callbacks & Reentrancy 20 min · Read, predict, build and test
  4. Checkpoint: Failure Policy 25 min · Independent practice

Day 5 · About 90 minutes

Testing Difficult Cases

Control async schedules and verify invariants with mutations.

  1. Controlled Async Tests 20 min · Read, predict, build and test
  2. Failure-Path Tests 20 min · Read, predict, build and test
  3. Invariants & Mutation Checks 25 min · Read, predict, build and test
  4. Checkpoint: Regression Evidence 25 min · Independent practice

Day 6 · About 90 minutes

Performance & Lifetime

Measure workloads, inspect scaling and bound deliberate retention.

  1. Performance Measurement 20 min · Read, predict, build and test
  2. Algorithms & Scaling 20 min · Read, predict, build and test
  3. Memory & Lifetime 25 min · Read, predict, build and test
  4. Checkpoint: A Bounded, Measured Cache 25 min · Independent practice

Day 7 · About 90 minutes

Ship an Ordered Task Pool

Run the complete library and tests, document its limits and solve a fresh retry brief.

  1. Capstone: Ordered Task Pool 25 min · Read, predict, build and test
  2. Tests & Failure Lab 15 min · Read, predict, build and test
  3. Modules & Local Use (Optional) 15 min · Read, predict, build and test
  4. Documenting Library Limits 15 min · Read, predict, build and test
  5. On Your Own: Sequential Retry 20 min · Independent practice
  6. Come Back Later: Review Challenges 20 min · Return later · extra review