Baseline Widely available
Note: This feature is available in Web Workers.
The console.error()
static method outputs a message to the console at the "error" log level. The message is only displayed to the user if the console is configured to display error output. In most cases, the log level is configured within the console UI. The message may be formatted as an error, with red colors and call stack information.
console.error(val1)
console.error(val1, /* â¦, */ valN)
console.error(msg)
console.error(msg, subst1, /* â¦, */ substN)
Parameters
val1
⦠valN
A list of JavaScript values to output. A representation of each of these values is output to the console in the order given with some type of separation between each of them. There is a special case if val1
is a string, which is described subsequently.
msg
A JavaScript string containing zero or more substitution strings, which are replaced with subst1
through substN
in consecutive order up to the number of substitution strings. See Using string substitutions for a description of how substitutions work.
subst1
⦠substN
JavaScript values with which to replace substitution strings within msg
. If there are more substitution values than there are substitution strings, the extra values are themselves written to the console after the detailed assertion message in the same manner as when there's no format string.
See Outputting text to the console in the documentation of console
for further details.
None (undefined
).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4