Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Knowledge base

Knowledge base

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

Entries: 5788

JavaScript

AbortController — cancelling fetch operations

AbortController communicates a cancellation request through `signal`. `fetch` constructs a `Request` before checking the signal. If request construction fails, the promise rejects with that error (for example, a `TypeError` for an invalid URL), even if the signal is already aborted. If `fetch` detects the abort while its promise is pending, it rejects the promise with the abort reason. If the promise has already fulfilled with a `Response`, aborting cannot change its state but can cause a pending response-body read to fail.

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

AbortSignal — cancellation signal

AbortSignal passes a cancellation request to fetch; AbortController initiates cancellation, while the signal exposes its 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

AbortSignal.aborted — reading cancellation state

AbortSignal.aborted is a read-only instance property. It returns true when the signal has been aborted, or false otherwise. It lets you inspect the current state but does not itself cancel an operation.

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

AnalyserNode — audio spectrum and waveform

AnalyserNode exposes frequency-spectrum and waveform samples without modifying the audio passing through it.

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

Animation — controlling browser animations

Animation controls playback of an effect on a timeline. It lets you start, pause, and seek an animation independently of its keyframe definition.

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

Animation.cancel(): canceling an animation

Animation.cancel() aborts an animation and removes its effect on the element rather than holding the current frame.

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

Animation.finished — the animation completion promise

Animation.finished lets you await animation completion while accounting for cancellation.

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

Animation.pause() — pausing an animation

Animation.pause() suspends animation playback without canceling it. The operation can be pending; animation.ready lets you wait for its completion.

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

Animation.play(): starting and resuming animations

Animation.play() starts or resumes an existing animation. It neither creates another animation nor returns a promise.

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

AudioBuffer — audio samples in memory

AudioBuffer stores channels of PCM samples in memory; it neither plays sound itself nor represents an audio file.

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

AudioContext — an audio processing graph

AudioContext manages a real-time audio graph. It connects sources, analysis, and output; starting processing may require user interaction.

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

AudioNode — audio graph nodes and connections

AudioNode is the base interface for Web Audio nodes. Its connect() method routes audio processing or controls an audio parameter.

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

Blob: byte size and streaming reads

Blob holds immutable binary data. The Blob.size property reports its size in bytes, while Blob.stream() exposes the data for asynchronous, chunk-by-chunk reading through a ReadableStream.

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

cancelAnimationFrame — canceling a pending callback

cancelAnimationFrame(handle) removes a pending callback registered with requestAnimationFrame(). Use the returned identifier in the same context; the method does not interrupt code that is already running.

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

cancelIdleCallback(): canceling a pending callback

cancelIdleCallback(handle) cancels a pending callback scheduled by requestIdleCallback(). It requires the request identifier, not the callback function itself.

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

CanvasRenderingContext2D — drawing on a bitmap

CanvasRenderingContext2D provides a stateful 2D drawing interface for rectangles, paths, text, images, and pixels. Distinguish the context state, current path, and bitmap contents.

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

CharacterData.data — reading and changing node data

The CharacterData.data property reads or replaces the textual data of a single node, such as Text or Comment. Assigning null sets an empty string.

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

clearInterval — canceling a repeating timer

clearInterval(id) cancels the timer identified by the value returned from setInterval(). It stops subsequent invocations but does not interrupt a running function.

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

clearTimeout — cancelling a timer

clearTimeout(id) cancels a pending callback scheduled with setTimeout(). To cancel it, pass the matching timer identifier, not the callback function. The argument is optional: calling clearTimeout() without it uses the default value 0 and does nothing.

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

Clipboard — asynchronous clipboard access

Clipboard exposes the system clipboard through navigator.clipboard; operations are asynchronous and subject to security 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

ClipboardItem — a clipboard item with MIME representations

ClipboardItem describes one clipboard item that can have several MIME representations. Its constructor prepares data; it does not itself write anything to the system clipboard.

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

Clipboard.read — asynchronous clipboard reading

The navigator.clipboard.read() method reads clipboard items and their MIME representations. It requires a secure context and browser authorization to access the clipboard.

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

Clipboard.readText — reading clipboard text

Clipboard.readText asynchronously reads system clipboard text, subject to the browser’s security controls.

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

Clipboard.write — asynchronous clipboard writing

Clipboard.write writes ClipboardItem objects to the system clipboard. It accepts alternative MIME representations, but requires a secure context and browser authorization.

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