JavaScriptShadowRoot.append adds nodes and text at the end of a shadow tree. It is inherited from DocumentFragment rather than a separate implementation. Learn how nodes move, fragments become empty, and appendChild() differs.
Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptStorage exposes string key–value pairs through localStorage and sessionStorage. Learn the difference between Storage.length, which counts entries, and Storage.key(index), which returns a key name rather than its value.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptStorage.clear() synchronously removes every key–value pair from the selected Web Storage area. It takes no arguments and returns undefined. Be careful: it also deletes entries unrelated to your code.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptStorage.getItem(key) synchronously reads text from localStorage or sessionStorage. It returns null when the key does not exist; an empty string is an existing value, not a missing entry.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptThe removeItem(key) method removes a specific key–value pair from localStorage or sessionStorage. It returns undefined; a missing key does not cause an error.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptStorage.setItem stores text under a key in localStorage or sessionStorage, replacing the previous value. Writes can fail, so account for exceptions and storage access restrictions.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptstructuredClone() copies supported data structures, including nested objects and cycles. The transfer option moves resources instead of copying them; not every value type can be cloned.
Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptTextDecoder converts bytes into text. Learn chunked decoding, error handling with fatal, and the meaning of ignoreBOM.
Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptTextDecoderStream converts a byte stream into text, preserving decoder state between chunks.
Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptTextEncoder converts text into UTF-8 bytes. Learn how encode() differs from encodeInto() and what the read and written counters mean.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptTextEncoder.encode() encodes a JavaScript string as UTF-8 and returns a Uint8Array containing the resulting bytes. Call it on a TextEncoder instance; the byte count does not necessarily match the string length.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptTextEncoderStream transforms text chunks into UTF-8 bytes while preserving surrogate pairs split across chunks.
Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptTransformStream connects a writable side to a readable side. transform processes chunks, while flush can append final output before closure.
Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptThe unhandledrejection event reports a Promise rejection that remains unhandled when the browser reports it. It exposes the promise and rejection reason and is useful for diagnostics, not as a replacement for local error handling.
Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptURL separates an address into components, resolves relative references, and lets you modify query parameters.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptURL.hash reads and sets a URL fragment. Learn its encoding behavior and the distinction between empty and absent fragments.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptURL.pathname lets you read or replace a URL's path without changing its query or fragment.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptURLSearchParams reads and modifies query parameters, preserving repeated names and handling form-style encoding.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptURL.searchParams exposes query parameters as a URLSearchParams object linked to the URL.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptappend(name, value) adds a pair at the end of the query parameters, preserving earlier values with the same name.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptURLSearchParams.delete() removes every pair with a given name, or only pairs matching both the supplied name and value.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptURLSearchParams.forEach calls a function for each parameter pair, preserving order and repeated names. The callback arguments are the value, key, and parameter object.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptURLSearchParams.get(name) returns the first parameter value as a string, or null when the parameter is absent.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API supportJavaScriptgetAll(name) returns an array of every query parameter value with the specified name, preserving order and duplicates.
Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support