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.
CKTIS / JavaScript
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
console.debug sends data to the console at the debug level. Message visibility and appearance depend on the implementation and console filters.
console.dir displays a value using generic JavaScript object formatting; presentation details depend on the console implementation.
console.error logs an error-level message. Logging at that level does not itself throw an exception, but formatting can.
console.groupCollapsed groups subsequent console messages; an interactive interface may initially display the group collapsed.
If a console group is open, console.groupEnd() ends the most recently opened group. If no group is open, the call does nothing.
console.info sends data to the console at the informational level; its presentation depends on the implementation.
console.log prints values to the debugging console. It accepts multiple arguments and formatting, and returns undefined.
console.table displays data as a console table. The optional properties argument selects columns; presentation depends on the implementation.
console.time() starts a named timer. Use the same label with console.timeEnd() to display the elapsed time and end the measurement.
console.timeEnd() ends a timer started by console.time() and prints its elapsed time with its label.
console.trace() displays the stack at the call site, helping you discover how execution reached it.
console.warn logs diagnostic messages at warning level. A warning alone does not stop program execution.
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.
Set CSS declarations with setProperty(), passing a property name, value, and optional priority.
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.
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.
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.
CustomEvent extends Event with detail, allowing application-defined data to reach event listeners.
CustomEvent.detail exposes data supplied when an event is constructed. It defaults to null; objects are passed without cloning.
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.
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.
DataTransfer.setData() stores text in a specified format in the drag data store, replacing the previous value for that format.
DedicatedWorkerGlobalScope.postMessage sends data from a dedicated worker to its creator. The recipient reads it through event.data. The method supports structured cloning and optional transfer of object ownership.
Document represents a DOM document. The document object lets you find elements, read the document root, and use page properties concerning title, focus, and visibility. It is a web-platform interface, not part of ECMAScript itself.