Outline updated November 2026
Advanced JavaScript
Class Duration
35 hours of live training delivered over 5 days
Student Prerequisites
- Solid professional JavaScript experience, beyond the level of JavaScript Essentials
- Regular use of functions, objects, classes, modules, and async/await on real projects
- Knowledge of Node.js and web browser APIs is helpful
Target Audience
Professional developers and tech leads who already write JavaScript in the browser or on Node.js. Teams continuing on can move to Node.js for Professionals.
Description
This course is for developers who already write JavaScript and want a full, current command of the language. It starts with scope, closures, prototypes, classes, and this, then covers iterators, the newer collection methods, and regular expressions. Asynchronous code gets extended coverage: the event loop, promises, async/await, cancellation, and async iteration. Separate modules cover explicit resource management with using and the Temporal date and time API. Students also work with ES modules, error handling, testing, debugging, performance, and npm.
Learning Outcomes
- Explain scope, hoisting, closures, prototypes, and
thisbinding. - Process data lazily with iterators, generators, and iterator helpers.
- Use Set methods, Map upsert, grouping, and copying array methods.
- Write asynchronous code with promises, async/await, and cancellation.
- Consume and produce async iterables with
for await...of. - Manage resources deterministically with
usingandDisposableStack. - Model dates, times, and time zones with Temporal.
- Structure code with ES modules and interoperate with CommonJS.
- Test, debug, and profile JavaScript with Vitest,
node:test, and developer tools.
Training Materials
All students receive comprehensive courseware covering all topics in the course. Courseware is distributed via GitHub in the form of documentation and extensive code samples. Students practice the topics covered through challenging hands-on lab exercises.
Software Requirements
Students will need a free, personal GitHub account to access the courseware. No local student setup is required, this course is delivered with GitHub Codespaces. The free allotment of Codespaces hours from GitHub is sufficient to complete the course.
Versions covered: ECMAScript 2026, plus the ECMAScript 2027 additions Temporal and explicit resource management, on Node.js 26 LTS and current evergreen browsers.
Training Topics
Core Language Review (as needed)
- Variables, types, and coercion
- Functions, objects, and arrays
- Destructuring and spread
- Optional chaining
Scope and Closures
- Global, function, and block scope
- Lexical scope
- Hoisting and the temporal dead zone
- Closures and the module pattern
- Higher-order functions
- Recursion
Objects, Prototypes, and Classes
- Object literals and property descriptors
- Prototypes and the prototype chain
- Class syntax and static members
- Getters and setters
- Private fields and methods
- Static initialization blocks
- Inheritance and mixins
- Binding and
this
Iteration and Generators
- The iteration protocol
- Generators and lazy sequences
- Iterator helpers such as
mapandtake Iterator.from- Sequencing iterators with
Iterator.concat - Lazy iteration versus arrays
Collections and Data
- New Set methods
- Map and WeakMap
- Map upsert with
getOrInsert Object.groupByandMap.groupBy- Change-array-by-copy methods
- Typed arrays and
Float16Array - Base64 and hex with
Uint8Array structuredCloneand deep copies
Regular Expressions
- Named capture groups
- Duplicate named groups
- The
vflag and set notation - Pattern modifiers
- Escaping input with
RegExp.escape
Asynchronous JavaScript
- The event loop
- Tasks and microtasks
- Profiling async work
- Callbacks to promises
- Promise combinators
Promise.tryandPromise.withResolvers- Async/await and error propagation
- Cancellation with
AbortController - Timeouts with
AbortSignal - RxJS observables overview
Async Iteration
- Async generators
for await...of- Data streams as async iterables
Array.fromAsync- Back-pressure and concurrency limits
Explicit Resource Management
- Limits of
try/finallycleanup usingandawait usingSymbol.disposeandSymbol.asyncDisposeDisposableStackandAsyncDisposableStack- Cleaning up files, locks, and connections
- Cleanup in tests
Dates and Times with Temporal
- Why
Datefalls short Temporal.InstantandZonedDateTime- Plain dates and times
- Durations and arithmetic
- Rounding
- Time zones and calendars
- Parsing and formatting
- Interop with
Date - Engine support and polyfills
Modules
- Static imports and exports
- Dynamic imports
- Top-level await
- Import attributes and JSON modules
import.meta- CommonJS interop in Node.js
Decorators
- Class, method, field, and accessor decorators
- Status of the decorators proposal
- Decorators in TypeScript and Babel
Error Handling
- try/catch and error objects
- Custom errors and
Error.cause AggregateErrorError.isError- Errors in async code
Immutable Programming
- Immutability and
Object.freeze - Pure functions and side effects
- Referential transparency
- Immutable updates with copying methods
Testing
- Unit and integration testing
- Testing with Vitest
- Testing with
node:test - Mocking, spies, and fake timers
- Code coverage
Debugging
- Console techniques
- Breakpoints and conditional breakpoints
- Source maps
- Browser and Node.js debugging tools
Performance
- Profiling CPU and memory
- Finding memory leaks
- Optimization techniques
- Web Workers and Service Workers
npm
- Package management and lockfiles
- Semantic versioning
- npm scripts
- Workspaces
- Publishing packages