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

Clipboard.writeText — writing text to the clipboard

Clipboard.writeText writes plain text to the system clipboard. The operation is asynchronous and requires a secure context and browser permission to write.

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

console.assert — diagnostic condition checks

console.assert reports a failed condition in the console without stopping execution or replacing validation.

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

console.debug — diagnostic messages

console.debug sends data to the console at the debug level. Message visibility and appearance depend on the implementation and console filters.

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

console.dir — inspecting an object

console.dir displays a value using generic JavaScript object formatting; presentation details depend on the console implementation.

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

console.error — error-level messages

console.error logs an error-level message. Logging at that level does not itself throw an exception, but formatting can.

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

console.groupCollapsed — collapsed message group

console.groupCollapsed groups subsequent console messages; an interactive interface may initially display the group collapsed.

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

console.groupEnd() — end a console group

If a console group is open, console.groupEnd() ends the most recently opened group. If no group is open, the call 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

console.info — informational messages

console.info sends data to the console at the informational level; its presentation depends on the implementation.

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

console.log — console output

console.log prints values to the debugging console. It accepts multiple arguments and formatting, and returns undefined.

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

console.table — tabular console output

console.table displays data as a console table. The optional properties argument selects columns; presentation depends on the implementation.

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

console.time() — start a timer

console.time() starts a named timer. Use the same label with console.timeEnd() to display the elapsed time and end the measurement.

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

console.timeEnd() — ending a timer

console.timeEnd() ends a timer started by console.time() and prints its elapsed time with its label.

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

console.trace() — call stack trace

console.trace() displays the stack at the call site, helping you discover how execution reached 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

console.warn — console warnings

console.warn logs diagnostic messages at warning level. A warning alone does not stop program execution.

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

CSSStyleDeclaration.visibility: declared versus computed values

Read the result of the CSS cascade through getComputedStyle(element).visibility rather than element.style.visibility. Distinguish inline declarations, inheritance, and the live style 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

CSSStyleDeclaration.setProperty — setting CSS declarations

Set CSS declarations with setProperty(), passing a property name, value, and optional priority.

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

CSS.supports() — detecting CSS feature support

CSS.supports() checks whether the browser reports support for a specific property–value pair or CSS feature-query condition. It returns a boolean and helps select fallbacks without identifying the browser by name.

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

customElements.define — registering a custom element

customElements.define associates an element name with a constructor in the document's registry. Learn the distinction between autonomous custom elements and customized built-in elements, plus the main registration constraints.

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

customElements.get — retrieve a custom element constructor

customElements.get(name) synchronously returns the constructor registered under a name, or undefined. It checks a registry definition, not whether an element exists in the document.

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

CustomEvent — events with custom data

CustomEvent extends Event with detail, allowing application-defined data to reach event listeners.

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

CustomEvent.detail — custom event data

CustomEvent.detail exposes data supplied when an event is constructed. It defaults to null; objects are passed without cloning.

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

DataTransfer: drag data and allowed operations

DataTransfer carries data during dragging. Learn how effectAllowed restricts operations at the source, setData() stores the payload, and dropEffect selects the operation at the target, without performing the copy or move itself.

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

DataTransfer.effectAllowed — allowed drag operations

DataTransfer.effectAllowed specifies which operations the drag source permits. It does not select the final operation: dropEffect describes that operation and must agree with the allowed set.

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

DataTransfer.setData() — storing text data

DataTransfer.setData() stores text in a specified format in the drag data store, replacing the previous value for that format.

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