01Introduction

  1. 01Introduction

02Grammar and types

  1. 02Basics
  2. 03Comments
  3. 04Declarations
  4. 05Data structures and types
  5. 06Literals

03Control flow and error handling

  1. 07Block statement
  2. 08Conditional statements
  3. 09Exception handling statements

04Loops and iteration

  1. 10Loops and iteration

05Functions

  1. 11Defining functions
  2. 12Calling functions
  3. 13Function scopes and closures
  4. 14Using the arguments object
  5. 15Function parameters
  6. 16Arrow functions

06Expressions and operators

  1. 17Expressions and operators
  2. 18Assignment operators
  3. 19Comparison operators
  4. 20Arithmetic operators
  5. 21Bitwise operators
  6. 22Logical operators
  7. 23BigInt operators
  8. 24String operators
  9. 25Conditional (ternary) operator
  10. 26Comma operator
  11. 27Unary operators
  12. 28Relational operators
  13. 29Basic expressions

07Numbers and strings

  1. 30Numbers
  2. 31Number object
  3. 32Math object
  4. 33BigInts
  5. 34Strings
  6. 35String object
  7. 36Template literals

08Representing dates & times

  1. 37Instants
  2. 38Zoned date-times
  3. 39Plain date-times, dates, and times
  4. 40Plain year-months and month-days
  5. 41The RFC 9557 format
  6. 42Deriving new times
  7. 43The legacy Date object
  8. 44Temporal cookbook

09Regular expressions

  1. 45Creating a regular expression
  2. 46Writing a regular expression pattern
  3. 47Using regular expressions in JavaScript
  4. 48Examples
  5. 49Assertions
  6. 50Character classes
  7. 51Groups and backreferences
  8. 52Quantifiers

10Indexed collections

  1. 53Indexed collections
  2. 54Creating an array
  3. 55Referring to array elements
  4. 56Populating an array
  5. 57Array transformations
  6. 58Sparse arrays
  7. 59Multi-dimensional arrays
  8. 60Using arrays to store other properties
  9. 61Working with array-like objects

11Keyed collections

  1. 62Keyed collections

12Working with objects

  1. 63Working with objects
  2. 64Creating new objects
  3. 65Objects and properties
  4. 66Inheritance
  5. 67Defining methods
  6. 68Defining getters and setters
  7. 69Comparing objects

13Using classes

  1. 70Using classes
  2. 71Overview of classes
  3. 72Declaring a class
  4. 73Constructor
  5. 74Instance methods
  6. 75Private fields
  7. 76Accessor fields
  8. 77Public fields
  9. 78Static properties
  10. 79Extends and inheritance
  11. 80Why classes?

14Using promises

  1. 81Using promises
  2. 82Chaining
  3. 83Error handling
  4. 84Composition
  5. 85Creating a Promise around an old callback API
  6. 86Timing

15JavaScript typed arrays

  1. 87JavaScript typed arrays

16Iterators and generators

  1. 88Iterators and generators

17JavaScript resource management

  1. 89JavaScript resource management
  2. 90Problem
  3. 91The using and await using declarations
  4. 92The DisposableStack and AsyncDisposableStack objects
  5. 93Error handling
  6. 94Examples
  7. 95Pitfalls

18Internationalization

  1. 96Overview
  2. 97Locale information
  3. 98Figuring out the locale
  4. 99Understanding the return value
  5. 100Formatting data
  6. 101Collation
  7. 102Plural rules
  8. 103Segmentation
  9. 104Display names

19JavaScript language overview

  1. 105Data types
  2. 106Variables
  3. 107Operators
  4. 108Control structures
  5. 109Objects
  6. 110Arrays
  7. 111Functions
  8. 112Classes
  9. 113Asynchronous programming
  10. 114Modules
  11. 115Language and runtime

20JavaScript data types and data structures

  1. 116Dynamic and weak typing
  2. 117Primitive values
  3. 118Objects
  4. 119Type coercion

21Equality comparisons and sameness

  1. 120Equality comparisons and sameness

22Enumerability and ownership of properties

  1. 121Enumerability and ownership of properties

23Closures

  1. 122Closures

24Inheritance and the prototype chain

  1. 123Inheritance and the prototype chain
  2. 124Inheritance with the prototype chain
  3. 125Constructors
  4. 126Inspecting prototypes: a deeper dive
  5. 127Different ways of creating and mutating prototype chains
  6. 128Performance
  7. 129Conclusion

25Meta programming

  1. 130Meta programming

26Memory management

  1. 131Memory management