<aside> 🔌 The console API allows you to log information to console.

</aside>

Example


console.log('Hello world!')

Functions


console.log

console.log(
	...args: any[]
)

Logs the provided arguments to the console.

PARAMETERS

...args: any[]

The arguments to log.

RETURNS

void


console.info

console.info(
	...args: any[]
)

Logs the provided arguments to the console as informational messages.

PARAMETERS

...args: any[]

The arguments to log.

RETURNS

void


console.debug

console.debug(
	...args: any[]
)

Logs the provided arguments to the console as debug messages.

PARAMETERS

...args: any[]

The arguments to log.

RETURNS

void


console.warn

console.warn(
	...args: any[]
)

Logs the provided arguments to the console as warning messages.

PARAMETERS

...args: any[]

The arguments to log.

RETURNS

void


console.error

console.error(
	...args: any[]
)

Logs the provided arguments to the console as error messages.

PARAMETERS

...args: any[]

The arguments to log.

RETURNS

void


console.trace

console.trace(
	...args: any[]
)

Logs the provided arguments to the console with trace information.

PARAMETERS

...args: any[]

The arguments to log.

RETURNS

void


console.clear

console.clear()

Clears the console.

RETURNS

void