Console

The console provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers.

console.log

Writes a message to the console.

console.log('Hello, world!');

console.error

Writes an error message to the console.

console.error('An error occurred!');

console.warn

Writes a warning message to the console.

console.warn('A warning occurred!');

console.info

Writes an informational message to the console.

console.info('An informational message!');

console.clear

Clears the console.

console.clear();