# console
An implementation of the console global.
# Static members
function assert<T>(assertion: T, message?: string): voidLogs
messageto console ifassertionis false-ish.function log(message?: string): voidOutputs
messageto the console.function debug(message?: string): void function info(message?: string): void function warn(message?: string): void function error(message?: string): voidOutputs
messageto the console, prefixed with "Debug:", "Info:", "Warning:" or "Error:" respectively.function time(label?: string): voidStarts a new timer using the specified
label.function timeLog(label?: string): voidLogs the current value of a timer previously started with
console.time.function timeEnd(label?: string): voidLogs the current value of a timer previously started with
console.timeand discards the timer.
← ArrayBuffer crypto →