deno.com
method Console.error
#Console.error(...data: any[]): void

Outputs an error message to the console. This method routes the output to stderr, unlike other console methods that route to stdout.

Examples #

#

Example 1

console.error('Error occurred:', new Error('Something went wrong'));

Parameters #

#<span>...data</span>: any[]

Return Type #

void