JavaScript Guide
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
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
Control flow and error handling
Overview: Control flow and error handling
- [
if...else](/en-US/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#if...else_statement) - [
switch](/en-US/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#switch_statement) - [
try/catch/throw](/en-US/docs/Web/JavaScript/Guide/Control_flow_and_error_handling#exception_handling_statements) - Error objects
Loops and iteration
Overview: Loops and iteration
- [
for](/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration#for_statement) - [
while](/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration#while_statement) - [
do...while](/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration#do...while_statement) - [
continue](/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration#continue_statement) - [
break](/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration#break_statement) - [
for...in](/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration#for...in_statement) - [
for...of](/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration#for...of_statement)
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
- Numbers
- [
Numberobject](/en-US/docs/Web/JavaScript/Guide/Numbers_and_strings#number_object) - [
Mathobject](/en-US/docs/Web/JavaScript/Guide/Numbers_and_strings#math_object) - Strings
- [
Stringobject](/en-US/docs/Web/JavaScript/Guide/Numbers_and_strings#string_object) - Template literals
Representing dates & times
Overview: Representing dates & times
Regular expressions
Overview: Regular expressions
- Creating a regular expression
- Writing a regular expression pattern
- Assertions
- Character classes
- Groups and backreferences
- Quantifiers
Indexed collections
Overview: Indexed collections
Keyed collections
Overview: Keyed collections
- [
Map](/en-US/docs/Web/JavaScript/Guide/Keyed_collections#map_object) - [
WeakMap](/en-US/docs/Web/JavaScript/Guide/Keyed_collections#weakmap_object) - [
Set](/en-US/docs/Web/JavaScript/Guide/Keyed_collections#set_object) - [
WeakSet](/en-US/docs/Web/JavaScript/Guide/Keyed_collections#weakset_object)
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](/en-US/docs/Web/JavaScript/Guide/Resource_management#the_using_and_await_using_declarations) - [The
DisposableStackandAsyncDisposableStackobjects](/en-US/docs/Web/JavaScript/Guide/Resource_management#the_disposablestack_and_asyncdisposablestack_objects) - 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
{{Next("Web/JavaScript/Guide/Introduction")}}