Interface representing the console object that provides methods for logging, debugging, and timing
assert(condition?: boolean,...data: any[],): voidTests that an expression is true. If not, logs an error message
clear(): voidClears the console if the environment allows it
count(label?: string): voidMaintains an internal counter for a given label, incrementing it each time the method is called
countReset(label?: string): voidResets the counter for a given label
debug(...data: any[]): voidOutputs a debugging message to the console
dir(item?: any,options?: any,): voidDisplays a list of the properties of a specified object
error(...data: any[]): voidOutputs an error message to the console. This method routes the output to stderr, unlike other console methods that route to stdout.
group(...data: any[]): voidCreates a new inline group in the console, indenting subsequent console messages
groupCollapsed(...data: any[]): voidCreates a new inline group in the console that is initially collapsed
groupEnd(): voidExits the current inline group in the console
info(...data: any[]): voidOutputs an informational message to the console
log(...data: any[]): voidOutputs a message to the console
table(tabularData?: any,properties?: string[],): voidDisplays tabular data as a table
time(label?: string): voidStarts a timer you can use to track how long an operation takes
timeEnd(label?: string): voidStops a timer that was previously started
timeLog(label?: string,...data: any[],): voidLogs the current value of a timer that was previously started
trace(...data: any[]): voidOutputs a stack trace to the console
warn(...data: any[]): voidOutputs a warning message to the console
timeStamp(label?: string): voidAdds a marker to the DevTools Performance panel
profile(label?: string): voidStarts recording a performance profile
profileEnd(label?: string): voidStops recording a performance profile