Skip to content

JavaScript features by topic and edition

This is the index of the modern JavaScript features covered in this section, grouped by what you use them for. Each row names the ECMAScript edition that introduced the feature and links to the page that explains it. Larger features have their own page; closely related everyday features are explained together in the three topic pages, Core language, Async and modules and Objects and collections.

New to the language? Start with the Basics, then read the three topic pages, then pick feature pages as you need them. For the edition-by-edition view, see ECMAScript versions.

Feature Edition What it gives you
Block bindings: let and const ES2015 Block scope, the temporal dead zone, and choosing const, let or var.
Arrow functions ES2015 Short functions that use the surrounding this.
Default parameters ES2015 Parameter defaults that apply only to undefined.
Destructuring ES2015 Unpack objects and arrays into variables and parameters.
Template literals ES2015 Interpolation, multi-line strings and tagged templates.
Object shorthand ES2015 Concise properties and methods in object literals.
Computed property names ES2015 Dynamic keys in object literals and classes.
Rest/spread properties ES2015 arrays, ES2018 objects Copy, merge and omit with ..., plus rest parameters.
Binary and octal literals ES2015 0b and 0o number literals.
Exponentiation operator ES2016 ** and **= instead of Math.pow.
Trailing commas ES5 to ES2017 Cleaner diffs in lists, parameters and calls.
Optional catch binding ES2019 catch without an unused error variable.
Optional chaining ES2020 ?. reads that stop at null or undefined.
Nullish coalescing ES2020 ?? defaults that keep 0 and empty strings.
Logical assignment ES2021 &&=, ||= and ??=.
Numeric separators ES2021 1_000_000 style number literals.
Hashbang comments ES2023 Executable script files with #!.
Tail calls ES2015 Proper tail calls: specified, but only shipped in Safari.
Feature Edition What it gives you
Classes ES2015, fields ES2022 Constructors, methods, inheritance, fields and getters.
Private fields ES2022 Real encapsulation with #name.
Private methods ES2022 Hidden helper methods and accessors.
Static blocks ES2022 One-time class initialization logic.
Object.assign ES2015 Copy properties onto an existing object.
Symbols ES2015 Unique keys and language hooks such as Symbol.iterator.
Proxy ES2015 Intercept reads, writes and calls.
Reflect API ES2015 Object operations as functions, for proxy traps.
Object.keys ES5 List an object’s own enumerable keys.
Object.values ES2017 Read an object’s values.
Object.entries ES2017 Loop over and transform key-value pairs.
Object.getOwnPropertyDescriptors ES2017 Copies that keep getters and setters.
Object.hasOwn ES2022 Safe own-property checks.
globalThis ES2020 One name for the global object in every environment.
Error cause ES2022 Chain errors with { cause }.
Feature Edition What it gives you
Map and Set ES2015, Set methods ES2025 Keyed collections and unique values.
WeakMap and WeakSet ES2015 Per-object data without memory leaks.
WeakRef and FinalizationRegistry ES2021 Garbage-collection-aware caches.
Iterators ES2015, helpers ES2025 The protocols behind for...of and spread.
Generators ES2015 Lazy sequences with function* and yield.
for…of ES2015 Loop over the values of any iterable.
for…in ES1, order ES2020 Loop over an object’s enumerable keys.
Array.from ES2015 Build arrays from iterables and array-likes.
Array.of ES2015 Build arrays without the Array(n) length trap.
find and findIndex ES2015 First matching element or index.
includes ES2016 Readable membership checks, including NaN.
at ES2022 Negative indexing from the end.
findLast and findLastIndex ES2023 Search from the end.
toSorted, toReversed and with ES2023 Change a copy, not the original array.
Shared memory and Atomics ES2017 Memory shared between workers.
Feature Edition What it gives you
String includes, startsWith and endsWith ES2015 Readable substring, prefix and suffix checks.
String repeat ES2015 Repeat text n times.
padStart and padEnd ES2017 Fixed-width text and aligned columns.
String matchAll ES2020 Every regex match with its groups.
RegExp features ES2015 to ES2024 Named groups, lookbehind, the s, d and v flags.
Unicode support ES2015 onward Code points, surrogate pairs and normalization.
BigInt ES2020 Exact integers beyond 2^53.
Feature Edition What it gives you
Promises ES2015 Values that arrive later, chaining and combinators.
Async functions and await ES2017 Sequential-looking async code with try/catch.
Promise.finally ES2018 Clean-up on success and failure.
Async iteration ES2018 for await...of and async generators.
Promise.allSettled ES2020 Every outcome of a batch of promises.
Promise.any ES2021 The first success wins.
Modules ES2015 import and export between files.
Dynamic import ES2020 Load modules on demand.
Top-level await ES2022 await at module level for async setup.