Easy Tutorial
❮ Prop Hidden Type Met Document Getelementbyid ❯

Console Object

The Console object provides access to the browser's debugging console.

Method Description
assert() Outputs an error message to the console if the assertion is false.
clear() Clears the console.
count() Logs the number of times that this particular call to count() has been called.
error() Outputs an error message to the console.
group() Creates a new inline group in the console. It starts and ends with console.group() and console.groupEnd() respectively.
groupCollapsed() Creates a new inline group in the console. Similar to console.group(), but the new group is collapsed.
groupEnd() Ends the current inline group.
info() Outputs an informational message to the console.
log() Outputs a message to the console.
table() Displays tabular data as a table.
time() Starts a timer, used to calculate the duration of an operation.
timeEnd() Stops a timer that was previously started by console.time().
trace() Outputs a stack trace to the console.
warn() Outputs a warning message to the console, prefixed with a yellow triangle.
❮ Prop Hidden Type Met Document Getelementbyid ❯