Outline updated November 2026

Advanced35 hours delivered over 5 daysLive, online or on-site

Request this course

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 this binding.
  • 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 using and DisposableStack.
  • 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 map and take
  • 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.groupBy and Map.groupBy
  • Change-array-by-copy methods
  • Typed arrays and Float16Array
  • Base64 and hex with Uint8Array
  • structuredClone and deep copies

Regular Expressions

  • Named capture groups
  • Duplicate named groups
  • The v flag 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.try and Promise.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/finally cleanup
  • using and await using
  • Symbol.dispose and Symbol.asyncDispose
  • DisposableStack and AsyncDisposableStack
  • Cleaning up files, locks, and connections
  • Cleanup in tests

Dates and Times with Temporal

  • Why Date falls short
  • Temporal.Instant and ZonedDateTime
  • 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
  • AggregateError
  • Error.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

Private team training

Bring this course to your team

Tell us about your team and we will tailor this outline to your tools, stack, and schedule. Courses can also be combined into a longer program.

  1. Tell us what you needYour tools, stack, team size, and timeline.
  2. We send a proposalA course or program, an outline adjusted to your team, and possible dates.
  3. Your team trains liveOnline or on-site, with courseware for every student.

Prefer to talk? Call +1 434-509-6890 or email help@cloudcontraptions.com.

We reply within 1 business day.

Training partner?