Try Install Learn Blog API Packages GitHub
Pages
core

Search
Entities

Console

Functions

assert
(
assertion
:
Bool
value
:
a
values
:
Array(b)
)
:
Tuple(Bool, a, Array(b))

If the assertion is false, the message is written to the console. Supports string substitution.

assert()

clear
:
Void

Clears the console.

clear()

count
(
label
:
String
)
:
Tuple(String, Number)

Logs the number of times that this particular call to count() has been called. Returns the label passed along with the current count.

count()

countReset
(
label
:
String
)
:
Tuple(String, Number)

Resets the counter used with Console.count(). Returns the label passed along with the current count.

countReset()

debug
(
value
:
a
values
:
Array(b)
)
:
Tuple(a, Array(b))

Outputs a message to the Web Console at the "debug" log level. The message is only displayed to the user if the console is configured to display debug output. Supports string substitution.

debug()

dir
(
value
:
a
)
:
a

Displays an interactive list of the properties of the generated JavaScript object.

dir()

dirxml
(
value
:
a
)
:
a

Displays an interactive tree of the descendant elements of the specified XML/HTML element.

dirxml()

error
(
value
:
a
values
:
Array(b)
)
:
Tuple(a, Array(b))

Outputs an error message to the Web Console. Supports string substitution.

error()

group
(
label
:
String
)
:
String

Creates a new inline group in the Web Console log.

group()

groupCollapsed
(
label
:
String
)
:
String

Creates a new inline group in the Web Console log. The new group is created collapsed.

groupCollapsed()

groupEnd
(
label
:
String
)
:
String

Exits the current inline group in the Web Console.

groupEnd()

info
(
value
:
a
values
:
Array(b)
)
:
Tuple(a, Array(b))

Outputs an informational message to the Web Console. Supports string substitution.

info()

log
(
value
:
a
values
:
Array(b)
)
:
Tuple(a, Array(b))

Outputs a message to the Web Console. Supports string substitution.

Console.log("Hello ", ["World", "!"]) => "Hello World!"

log()

profile
(
profileName
:
String
)
:
String

NON-STANDARD:

Starts recording a performance profile.

profile()

profileEnd
(
profileName
:
String
)
:
String

NON-STANDARD:

Stops recording a performance profile previously started.

profileEnd()

table
(
data
:
a
columns
:
Array(String)
)
:
Tuple(a, Array(String))

Logs data as a table.

table()

time
(
label
:
String
)
:
String

Starts a timer.

time()

timeEnd
(
label
:
String
)
:
String

Stops a timer that was previously started.

timeEnd()

timeLog
(
label
:
String
values
:
Array(a)
)
:
Tuple(String, Array(a))

Logs the current value of a timer that was previously started.

timeLog()

timestamp
(
label
:
String
)
:
String

NON-STANDARD:

Adds a single marker to the browser's performance tool.

timestamp()

trace
(
value
:
a
values
:
Array(b)
)
:
Tuple(a, Array(b))

Outputs a stack trace to the Web Console. Does not support string substitution.

trace()

warn
(
value
:
a
values
:
Array(b)
)
:
Tuple(a, Array(b))

Outputs a warning message to the Web Console.

warn()