console.error

Instance of

Function

Parameters

/*any number of convertible to String parameters*/

Return value

console

Description

Writes arguments to standard output stream (with date and time, marked in red).

Example

try {
    throw "error";
} catch {
    console.error(exception);
}