JavaScript Guide
The JavaScript Guide shows you how to use JavaScript and gives an overview of the language. If you need exhaustive information about a language feature, have a look at the JavaScript reference.
This Guide is divided into the following chapters.
Introduction
Overview: Introduction
Grammar and types
Overview: Grammar and types
- Basic syntax & comments
- Declarations
- Variable scope
- Variable hoisting
- Data structures and types
- Literals
Control flow and error handling
Overview: Control flow and error handling
Loops and iteration
Overview: Loops and iteration
Functions
Overview: Functions
- Defining functions
- Calling functions
- Function scopes and closures
- Arguments & parameters
- Arrow functions
Expressions and operators
Overview: Expressions and operators
- Assignment & Comparisons
- Arithmetic operators
- Bitwise & logical operators
- Conditional (ternary) operator
Numbers and strings
Overview: Numbers and strings
Representing dates & times
Overview: Representing dates & times
- Instants
- Zoned date-times
- Plain date-times, dates, and times
- Plain year-months and month-days
- Cookbook
Regular expressions
Overview: Regular expressions
Indexed collections
Overview: Indexed collections
Keyed collections
Overview: Keyed collections
Working with objects
Overview: Working with objects
Using classes
Overview: Using classes
Promises
Overview: Promises
Typed arrays
Overview: Typed arrays
Iterators and generators
Overview: Iterators and generators
Resource management
Overview: JavaScript resource management
- The
usingandawait usingdeclarations - The
DisposableStackandAsyncDisposableStackobjects - Error handling
Internationalization
Overview: Internationalization
JavaScript modules
Overview: JavaScript modules
- Exporting
- Importing
- Default exports and imports
- Avoiding naming conflicts
- Importing JSON modules
- Dynamic module loading
- Top-level await
- Module metadata
- Using modules on the web
- Understanding the module graph
- Modules across platforms
Advanced topics
After you have learned all fundamental features of JavaScript, you can explore some more niche features, or dive deeper into the language's mechanisms and concepts.
- Language overview
- Data structures
- Enumerability and ownership of properties
- Inheritance and the prototype chain
- Equality comparisons and sameness
- Closures
- Meta programming
- Memory management
- Agent communication and coordination
Help improve MDN
Was this page helpful to you? Yes No Learn how to contributeThis page was last modified on Nov 13, 2026 by MDN contributors.
View this page on GitHub • Report a problem with this content