Interface representing the console object that provides methods for logging, debugging, and timing
Methods Jump to heading
Jump to headingassert(condition?: boolean,...data: any[],): voidTests that an expression is true. If not, logs an error message
Jump to headingclear(): voidClears the console if the environment allows it
Jump to headingcount(label?: string): voidMaintains an internal counter for a given label, incrementing it each time the method is called
Jump to headingcountReset(label?: string): voidResets the counter for a given label
Jump to headingdebug(...data: any[]): voidOutputs a debugging message to the console
Jump to headingdir(item?: any,options?: any,): voidDisplays a list of the properties of a specified object
Jump to headingerror(...data: any[]): voidOutputs an error message to the console. This method routes the output to stderr, unlike other console methods that route to stdout.
Jump to headinggroup(...data: any[]): voidCreates a new inline group in the console, indenting subsequent console messages
Jump to headinggroupCollapsed(...data: any[]): voidCreates a new inline group in the console that is initially collapsed
Jump to headinggroupEnd(): voidExits the current inline group in the console
Jump to headinginfo(...data: any[]): voidOutputs an informational message to the console
Jump to headinglog(...data: any[]): voidOutputs a message to the console
Jump to headingtable(tabularData?: any,properties?: string[],): voidDisplays tabular data as a table
Jump to headingtime(label?: string): voidStarts a timer you can use to track how long an operation takes
Jump to headingtimeEnd(label?: string): voidStops a timer that was previously started
Jump to headingtimeLog(label?: string,...data: any[],): voidLogs the current value of a timer that was previously started
Jump to headingtrace(...data: any[]): voidOutputs a stack trace to the console
Jump to headingwarn(...data: any[]): voidOutputs a warning message to the console
Jump to headingtimeStamp(label?: string): voidAdds a marker to the DevTools Performance panel
Jump to headingprofile(label?: string): voidStarts recording a performance profile
Jump to headingprofileEnd(label?: string): voidStops recording a performance profile