ECMAScript 2020 (ES11)
ECMAScript 2020 (ES11) — ES2020 was a landmark release with optional chaining, nullish coalescing, and BigInt. Optional chaining (?.): Safely access nested properties without checking each level. Example: user?.profile?.name // undefined instead of error. Nullish coalescing (??): Returns right side only for null/undefined (not falsy). Example: const name = input ?? "default". BigInt: Arbitrary precision integers. Example: const big = 9007199254740991n. Promise.allSettled(): Waits for all promises to complete, regardless of rejection. Example: const results = await Promise.allSettled(promises). globalThis: Standard way to access the global object across environments. Example: globalThis.console.log("hi"). Dynamic import(): Import modules dynamically as a function. Example: const module = await import("./module.js"). In total, ES2020 added 7 documented features to the language. Compare with the other editions on the ECMAScript versions page.