JavaScript Foundations
The JavaScript you need before Node.js, frontend frameworks, APIs, and CLI apps.
What's Inside
- 018 mins
What Is JavaScript?
The language, its runtimes, and surrounding tools.
- 027 mins
Running JavaScript
Run small JavaScript in the browser console.
- 037 mins
Values and Variables
Values are data; variables are names for them.
- 047 mins
Making Decisions
Use conditions to choose what code runs.
- 059 mins
Functions
Reusable blocks that take input and return output.
- 0610 mins
Scope and Closures
Where names live, and what closures remember.
- 078 mins
Objects
Group related data with keys and values.
- 0810 mins
Arrays
Store ordered lists of values.
- 099 mins
Loops
Repeat work across items or while true.
- 107 mins
Modules
Split code across files with import and export.
- 118 mins
Errors
Read errors, throw them, and catch them safely.
- 128 mins
Async JavaScript
Work with values that are not ready yet.
- 137 mins
JSON and API-Shaped Data
Read and write the data APIs send and expect.
- 147 mins
Just Enough Browser JavaScript
The DOM, events, forms, and fetch in the browser.
- 156 mins
What Comes Next
A map for your next steps after the basics.
What you'll learn
- Separate JavaScript from browsers, Node.js, runtime APIs, frameworks, and surrounding tools
- Work with values, variables, decisions, functions, scope, objects, arrays, loops, modules, and errors
- Reason about references, mutation, callbacks, closures, async code, promises, JSON, and API-shaped data
- Use enough browser JavaScript to understand the DOM, events, forms, fetch, and runtime boundaries
- Prepare for the next steps: Node.js, CLI applications, backend APIs, frontend frameworks, and TypeScript
Meet the Author
The people behind this packWhat are Lesson Packs?
Lesson packs are premium, opinionated guides written by the team. Pro members get access to all current and future lesson packs, including other pro benefits.
- Written by the team behind roadmap.sh
- Visual — diagrams and worked examples
- A clear, opinionated path per roadmap
- Unlocks every current and future pack

