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

Expressions and operators

Overview: Expressions and operators

Numbers and strings

Overview: Numbers and strings

  • Numbers
  • [Number object](/en-US/docs/Web/JavaScript/Guide/Numbers_and_strings#number_object)
  • [Math object](/en-US/docs/Web/JavaScript/Guide/Numbers_and_strings#math_object)
  • Strings
  • [String object](/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

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 using and await using declarations](/en-US/docs/Web/JavaScript/Guide/Resource_management#the_using_and_await_using_declarations)
  • [The DisposableStack and AsyncDisposableStack objects](/en-US/docs/Web/JavaScript/Guide/Resource_management#the_disposablestack_and_asyncdisposablestack_objects)
  • Error handling

Internationalization

Overview: Internationalization

JavaScript modules

Overview: JavaScript modules

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.

{{Next("Web/JavaScript/Guide/Introduction")}}