|$ curl https://forge-ai.dev/api/markdown?path=docs/roadmaps/js
$cat docs/javascript-learning-roadmap.md
updated Today·15 min read·published

JavaScript Learning Roadmap

JavaScriptRoadmapAll Levels
Introduction

Complete JavaScript learning path covering all 36 core topics across 7 stages — from fundamentals and functions through objects, browser APIs, async programming, advanced language features, and production-grade web development. Each stage builds on the previous; estimated times include focused study with hands-on practice.

info

Work through stages sequentially. Foundational topics in Stages 1–3 are prerequisites for the browser and async concepts in Stages 4–5, which in turn unlock the advanced and production topics in Stages 6–7.
Full JavaScript Roadmap
5
Async JavaScript~7 hoursIntermediate-Advanced

Modern asynchronous programming — promises, async/await, and module systems for scalable code organization.

best practice

Always handle promise rejections with .catch() or try/catch in async functions. Unhandled rejections crash Node.js processes and produce unhelpful errors in browsers.
7
Web & Production~7 hoursAdvanced-Professional

Real-world JavaScript — networking, parallelism, patterns, type safety, testing, performance, and security practices.

best practice

Adopt TypeScript for all new projects. Combined with strict linting and comprehensive tests, it catches entire classes of bugs at compile time and makes refactoring safe and predictable.
$
Fetch API

fetch() basics, Request/Response objects, headers, CORS, streaming responses, AbortController, error handling, file uploads, interceptors.

$
WebSockets

WebSocket protocol, connection lifecycle, binary vs text messages, reconnection strategies, heartbeats, Socket.IO comparison, production scaling.

$
Web Workers

Dedicated workers, postMessage protocol, transferable objects, shared workers, worker lifecycle, offloading CPU-heavy tasks, limitations.

$
Service Workers

Lifecycle (install/activate/fetch), cache strategies (Cache First, Network First, Stale While Revalidate), offline support, push notifications, background sync.

$
Design Patterns

Module, singleton, factory, observer, pub/sub, mediator, command, strategy, decorator, MVC/MVVM patterns applied to frontend JavaScript.

$
Functional Programming

Pure functions, immutability, referential transparency, function composition, currying, partial application, functors, monads (Maybe, Either), Ramda/Lodash FP.

$
Performance

V8 optimization, inline caching, hidden classes, memory profiling (Chrome DevTools), heap snapshots, garbage collection, bundle size, code splitting, lazy loading.

$
TypeScript

Type annotations, interfaces vs types, generics, union/intersection types, type narrowing, utility types, declaration files, strict mode, migrating JS to TS.

$
Testing & Debugging

Unit testing (Jest/Vitest), integration tests, E2E (Playwright/Cypress), TDD cycle, mocking, code coverage, debugging with DevTools, source maps, logging strategies.

$
Security

XSS prevention, CSRF tokens, Content Security Policy, same-origin policy, CORS, input sanitization, DOMPurify, npm supply chain security, OWASP top ten for JS.

$Blueprint — Engineering Documentation·Section ID: RES-04·Revision: 1.0