Class: Console

html.Console

Class representing the debug console list model.

Console messages are globally redirected to this model if at least one instance of this class exists.

new html.Console ()

Extends

Methods

at (n)string

Returns the message at the given position.

Name Type Description
n number

The position of the message.

Returns:
Type Description
string The message.

clear ()

Clears the console.

debug (msg)

Writes a debug message to the console.

Name Type Description
msg string

The message.

error (msg)

Writes an error message to the console.

Name Type Description
msg string

The message.

info (msg)

Writes an info message to the console.

Name Type Description
msg string

The message.

Writes a log message to the console.

Name Type Description
msg string

The message.

warn (msg)

Writes a warning message to the console.

Name Type Description
msg string

The message.