The console.assert() static method writes an error message to the console if the assertion is false.
Optionalcondition: booleanThe console.clear() static method clears the console if possible.
The console.count() static method logs the number of times that this particular call to count() has been called.
Optionallabel: stringThe console.countReset() static method resets counter used with console/count_static.
Optionallabel: stringThe console.debug() static method outputs a message to the console at the 'debug' log level.
The console.dir() static method displays a list of the properties of the specified JavaScript object.
Optionalitem: anyOptionaloptions: anyThe console.dirxml() static method displays an interactive tree of the descendant elements of the specified XML/HTML element.
The console.error() static method outputs a message to the console at the 'error' log level.
The console.group() static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.
The console.groupCollapsed() static method creates a new inline group in the console.
The console.groupEnd() static method exits the current inline group in the console.
The console.info() static method outputs a message to the console at the 'info' log level.
The console.log() static method outputs a message to the console.
The console.table() static method displays tabular data as a table.
OptionaltabularData: anyOptionalproperties: string[]The console.time() static method starts a timer you can use to track how long an operation takes.
Optionallabel: stringThe console.timeEnd() static method stops a timer that was previously started by calling console/time_static.
Optionallabel: stringThe console.timeLog() static method logs the current value of a timer that was previously started by calling console/time_static.
Optionallabel: stringOptionallabel: stringThe console.trace() static method outputs a stack trace to the console.
The console.warn() static method outputs a warning message to the console at the 'warning' log level.
The
consoleobject provides access to the debugging console (e.g., the Web console in Firefox).MDN Reference