Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / JavaScript

Knowledge base — JavaScript

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 1003

JavaScript

Intl.Segmenter — locale-sensitive text segmentation

Intl.Segmenter finds grapheme, word, or sentence boundaries using locale-sensitive rules. Its segment() method returns iterable segment descriptions, and isWordLike lets you select segments classified as word-like.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

KeyboardEvent.code — physical key rather than character

KeyboardEvent.code identifies a key's physical position independently of keyboard layout and modifiers. Learn how code differs from key and where text input and virtual keyboards require a different approach.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

KeyboardEvent fields: key meaning, position, and state

Distinguish a key's value from its physical position, and inspect repetition, Shift state, and text composition. These KeyboardEvent fields help handle shortcuts without confusing keyboard layout with text input.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

KeyboardEvent.key — the meaning of a key

KeyboardEvent.key is a read-only string property describing a key’s meaning. It accounts for keyboard layout and modifiers; unlike code, it does not describe the key’s physical position.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

KeyframeEffect — a keyframe animation effect

KeyframeEffect describes an effect's target, keyframes, and timing parameters. A separate Animation object controls playback.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

localStorage — local data storage

localStorage exposes a browser store of string key–value pairs associated with an origin. Data can outlast a session, but access and persistence depend on browser policy.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Page URL components: origin, pathname, search, hash, and href

The window.location object exposes the current page's complete URL and its components. Learn how origin, pathname, search, hash, and href differ, and why writing to Location can trigger navigation.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Location.hash — the page URL fragment

Location.hash reads and changes the current page's URL fragment. A nonempty value read from it includes the leading # character.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Location.href — reading the address and navigating

Location.href exposes the document URL as a string. Assigning a value initiates navigation rather than merely changing an ordinary variable.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

MediaQueryList: current result and the change event

MediaQueryList lets you inspect a media query's result and react when it changes. The matches property supplies the current boolean value, while the change event reports transitions between matching and not matching.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

MediaQueryList.matches — media query match state

MediaQueryList.matches is a read-only boolean property indicating whether a media query matches the document's current state.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

MessageChannel — communication through paired ports

MessageChannel creates two connected ports for asynchronous, bidirectional messaging. Learn how to receive events, start delivery, clone data, and close ports when communication is finished.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

messageerror — worker message deserialization failure

The messageerror event on a Worker signals that an incoming message could not be deserialized. Distinguish it from a sending failure in postMessage() and from the error event associated with a worker error.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

MessageEvent.data — message payload

MessageEvent.data is a read-only property that exposes a message's payload. Its type depends on the messaging mechanism, so do not assume the value is always text.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

MessagePort — a messaging channel endpoint

MessagePort is one of the two endpoints of a bidirectional channel. It enables asynchronous delivery of data and transferable objects between connected pieces of code.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

MouseEvent.clientY — vertical viewport coordinate

MouseEvent.clientY is a read-only property that gives a mouse event’s vertical coordinate relative to the viewport. It does not describe a position relative to the target element or the physical screen.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

MouseEvent: button, coordinates, and modifier keys

MouseEvent fields expose the button associated with an event, viewport-relative pointer coordinates, and the state of Ctrl, Meta, Shift, and Alt. Distinguish button from buttons and viewport coordinates from document coordinates.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

MutationObserver — observing DOM changes

MutationObserver records selected DOM changes and delivers records asynchronously to a callback. Learn how observe() configures observation, takeRecords() drains the queue, and disconnect() stops observation.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

MutationRecord — a DOM change record

MutationRecord describes one observed DOM change. Learn how to identify its type and affected node, inspect added and removed nodes, and retrieve an attribute name and previous value.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Navigator.clipboard — asynchronous clipboard access

Navigator.clipboard exposes a Clipboard object for asynchronous reading and writing of the system clipboard. It requires a secure context, and access is subject to browser restrictions.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Node — a DOM node

Node is the shared interface for DOM nodes, including elements and text. It provides tree relationships, node-type inspection, and operations for changing a node's children.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Node.appendChild — appending a node

Node.appendChild adds a node as a parent's last child. It returns the supplied node and moves an existing node rather than copying it.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Node.cloneNode(): copying a DOM node

Node.cloneNode() creates a separate DOM node. The subtree argument determines whether descendants are also copied.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Node.contains — checking DOM tree membership

Node.contains checks whether a given node is the node itself or a descendant at any depth. It returns a boolean.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support