Console API
chevron down
 

Console API

Variable: console

Type: Console

Interface: Console

Outputs a message to the Console.

Methods

assert()

assert(assertion: boolean, message?: any)

Returns: void

Writes an error message to the console if the assertion is false. If the assertion is true, nothing happens.

error()

error(message?: any)

Returns: void

Outputs an error message.

info()

info(message?: any)

Returns: void

Outputs an informational message.

log()

log(message?: any)

Returns: void

Outputs a message.

trace()

Returns: void

Outputs a stack trace.

warn()

warn(message?: any)

Returns: void

Outputs a warning message.