Node.js
Use the JavaScript runtime to build small reliable services. Runtime scheduling and stream concepts are foundational; supported APIs, security defaults, and deployment behavior must be checked against the selected Node.js release.
Get an in-app notice when new lessons or practice are added.
15 chapters across 5 modules
Course chapters
Explore all 15 chapters in any order. Each chapter has learning goals, a practice prompt, and a primary reference; expanded reading pages are linked from their chapter titles.
No matching chapters. Try another term.
01 · Runtime and program structure3 chapters
Node.js runtime and process
- Distinguish runtime APIs from browser APIs and JavaScript syntax
Practice: Write a command-line program that validates arguments and reports a failure exit code.
Read the primary referenceLesson guide · ReadyModules and package boundaries
- Explain CommonJS, ECMAScript modules, and explicit package configuration
Practice: Create two small modules and document the selected module format.
Read the primary referenceLesson guide · ReadyConfiguration and secrets
- Separate validated runtime settings from committed source
Practice: Read configuration, reject missing required values, and redact a sample secret in logs.
Read the primary referenceLesson guide · Ready
02 · Asynchronous execution3 chapters
The event loop and I/O
Reason about responsiveness instead of assuming async means parallel.
- Distinguish event-loop scheduling from work performed by the operating system or worker pool
Practice: Trace a timer, a promise, and a file operation without assuming nondeterministic I/O ordering.
Read the primary referenceExpanded reading · ReadyBlocking work and backpressure
- Identify how unbounded CPU work or buffering harms responsiveness
Practice: Compare a buffered file transformation with a streaming pipeline.
Read the primary referenceLesson guide · ReadyCancellation, timeouts, and errors
- Set a finite lifetime for work and preserve useful error context
Practice: Abort a delayed operation and test timeout cleanup.
Read the primary referenceLesson guide · Ready
03 · HTTP service boundaries3 chapters
Requests, responses, and status codes
- Model the complete lifecycle of a small HTTP handler
Practice: Implement a read-only topics endpoint and return explicit invalid-input and not-found responses.
Read the primary referenceLesson guide · ReadyBody limits and validation
- Reject oversized or malformed input before domain processing
Practice: Test a handler with missing fields, wrong types, invalid JSON, and a large body.
Read the primary referenceLesson guide · Ready
04 · Storage and reliability3 chapters
Database lifecycle and pooling
- Share a managed connection lifecycle rather than reconnecting on every operation
Practice: Write a storage adapter interface and a deterministic in-memory test implementation.
Read the primary referenceLesson guide · ReadyIdempotency and concurrent changes
- Explain how repeated requests can create duplicate side effects
Practice: Design a unique operation key and test duplicate submission behavior.
Read the primary referenceLesson guide · ReadyGraceful shutdown and health
- Stop accepting work before closing resources
Practice: Test a shutdown path with an in-flight request and a bounded timeout.
Read the primary referenceLesson guide · Ready
05 · Tests and operations3 chapters
Unit and integration tests
- Choose a test boundary that reveals an actual failure mode
Practice: Test a pure validator and a real local HTTP request separately.
Read the primary referenceLesson guide · ReadyStructured logs and latency
- Use request identifiers and durations without exposing credentials
Practice: Record a failed operation with a safe error category and elapsed time.
Read the primary referenceLesson guide · ReadyBuild a small learning API
- Combine validation, bounded I/O, persistence boundaries, and shutdown
Practice: Deliver a topics and progress API with documented status codes and regression cases.
Read the primary referenceLesson guide · Ready
Learn it. Check it. Try again.
11 original questions with worked explanations and source references. Filter by difficulty, revisit mistakes, and save your attempt as you go.
Open Node.js practiceBooks & references
Free reading at the publisher or author’s site. External materials keep their own licenses.
- Introduction to Node.jsNode.js project · documentation
Source & reuse terms
Free to read at the official provider. This catalog links to the source; it does not reproduce it or assert permission to redistribute it. Product use, hosted labs, and certificates may have separate costs.
- The Node.js event loop, timers, and nextTickNode.js project · documentation
Source & reuse terms
Free to read at the official provider. This catalog links to the source; it does not reproduce it or assert permission to redistribute it. Product use, hosted labs, and certificates may have separate costs.
- Node.js stream APINode.js project · documentation
Source & reuse terms
Free to read at the official provider. This catalog links to the source; it does not reproduce it or assert permission to redistribute it. Product use, hosted labs, and certificates may have separate costs.
- Node.js test runnerNode.js project · documentation
Source & reuse terms
Free to read at the official provider. This catalog links to the source; it does not reproduce it or assert permission to redistribute it. Product use, hosted labs, and certificates may have separate costs.
- Node.js CommonJS modulesNode.js project · documentation
Source & reuse terms
Free to read at the official provider. This catalog links to the source; it does not reproduce it or assert permission to redistribute it. Product use, hosted labs, and certificates may have separate costs.