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

Node.firstChild — the first child node

Node.firstChild is a read-only property that returns the first direct child node or null. It includes text and comments, so the returned node is not necessarily an element.

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.insertBefore — inserting before a child

Node.insertBefore inserts or moves a node before a specified child. Passing null inserts it at the end.

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

NodeList — a collection of DOM nodes

NodeList is an indexed, iterable collection of DOM nodes. It can be live or static, depending on the API that returns 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

NodeList.forEach — iterating over nodes

NodeList.forEach calls a function for successive nodes in a DOM collection, passing the node, index, and collection.

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

NodeList.length — node count

NodeList.length is a read-only property reporting the number of nodes in a collection, not necessarily just elements.

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.parentElement — the immediate parent element

Node.parentElement returns the immediate parent of type Element, or null. Unlike parentNode, it never returns a Document or DocumentFragment.

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.removeChild(): detaching a child node

The parent.removeChild(child) method detaches a direct child from its parent and returns the same node, which can be inserted again.

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.replaceChild — replacing a child

Node.replaceChild replaces a parent's direct child and returns the removed node. The replacement node is the first argument.

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.textContent — reading and replacing text

Node.textContent reads a node’s text or replaces its textual content without parsing HTML.

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

OscillatorNode — periodic waveform generator

OscillatorNode generates a mono periodic waveform. Configure its shape and frequency, connect its output, and schedule its start and stop.

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

PageTransitionEvent.persisted — preserving and restoring documents

PageTransitionEvent carries information for pageshow and pagehide events. Its persisted property distinguishes document restoration from ordinary loading and indicates whether the browser intends to preserve the document for possible reuse.

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

performance.clearMarks() — removing timing marks

performance.clearMarks() removes User Timing marks from the performance entry buffer. Supplying a name removes every matching mark; calling it without an argument removes all marks, but not measures.

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

performance.clearMeasures() — removing User Timing measures

performance.clearMeasures() removes stored User Timing measures from the performance entry buffer. You can remove all measures or every entry with one name without deleting timing marks.

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

PerformanceEntry.duration — performance entry duration

PerformanceEntry.duration is a read-only property reporting a performance entry's duration in milliseconds. Its meaning depends on entryType; a value of 0 can mean that duration does not apply, rather than that an operation completed instantly.

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

Performance.getEntriesByName — retrieving entries by name

Performance.getEntriesByName retrieves current performance timeline entries with a specified name and optional type. It returns an array rather than a single entry and does not track future events.

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

performance.mark — a named point on the timeline

performance.mark records a named timestamp on the performance timeline. It represents a point, not an interval; options let you set its time and attach metadata.

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

performance.measure — named time intervals

performance.measure records a named interval on the performance timeline. It can use marks or explicit timestamps; the modern overload returns a PerformanceMeasure containing the interval's start and duration in milliseconds.

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

performance.now() — measuring elapsed time

performance.now() returns a timestamp in milliseconds relative to the environment's time origin. Subtracting two readings measures elapsed time without being affected by system-clock adjustments.

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

PointerEvent — pointer input and capture

PointerEvent unifies mouse, touch, and pen input. Learn how pointer identifiers, viewport coordinates, interaction lifecycles, and pointer capture work together when implementing dragging.

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

PopStateEvent.state — history entry state

PopStateEvent.state reads the state associated with the history entry activated during a popstate event. Learn what null means and why saving state is different from navigating through history.

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

PromiseRejectionEvent.reason — a promise's rejection reason

PromiseRejectionEvent.reason exposes the rejection reason in unhandledrejection and rejectionhandled events. The property is read-only, but its value can be any JavaScript value, not just an Error object.

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

queueMicrotask — scheduling a microtask

queueMicrotask(callback) schedules a short function in the microtask queue. It runs after the current synchronous code finishes, without scheduling a separate timer task or yielding time to the browser for rendering.

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

Range — a live range in the DOM tree

Range describes a DOM fragment between two boundaries. It supports extracting, deleting, and inserting content, while its boundaries automatically respond to tree changes.

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

ReadableStream — reading data in chunks

ReadableStream provides chunked data consumption. A reader retrieves chunks asynchronously without requiring the entire input to be collected first.

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