YouTip LogoYouTip

Obj Console

# Console Object The Console object provides access to the browser's debugging console. | Method | Description | | --- | --- | | [assert()](#) | If the assertion is false, an error message is output to the console. | | [clear()](#) | Clears the console. | | [count()](#) | Logs the number of times that count() has been called. Generally used for counting. | | [error()](#) | Outputs an error message to the console. | | [group()](#) | Creates a new inline group in the console. A complete group starts with console.group() and ends with console.groupEnd(). | | [groupCollapsed()](#) | Creates a new inline group in the console. Similar to console.group(), but it is collapsed by default. | | [groupEnd()](#) | Exits the current group. | | [info()](#) | Outputs an informational message to the console. | | [log()](#) | Outputs a message to the console. | | [table()](#) | Displays data as a table. | | [time()](#) | Starts a timer. Used with timeEnd() to measure the duration of an operation. | | [timeEnd()](#) | Stops a timer that was started with time(). | | [trace()](#) | Outputs a stack trace to the console. | | [warn()](#) | Outputs a warning message to the console, prefixed with a yellow triangle icon. |
← Met Console ClearProp Win Localstorage β†’