Difference between revisions of "Bot Playground/Built-in Functions/console.error"
From SmartBots Developers Docs
								| m (Gg moved page Bot Playground/Commands/console.error to Bot Playground/Built-in Functions/console.error) |  (→Examples) | ||
| Line 18: | Line 18: | ||
| == Examples == | == Examples == | ||
| + | <syntaxhighlight lang="javascript"> | ||
| + | console.error("Oops! Something went wrong."); | ||
| + | </syntaxhighlight> | ||
| {{NavMenu}} | {{NavMenu}} | ||
Revision as of 12:28, 30 July 2025
Logs data to the error log. Read more about error logs.
console.log(...arguments);
Reference
This command accepts the following parameters:
| Variable | Required | Description 
 | |
|---|---|---|---|
| Input: | |||
| ...arguments | yes | any number of arguments to be logged to the log. Objects can be translated to a string using JSON.stringify() | |
| Output: | |||
| result | This function does not return anything | ||
Examples
console.error("Oops! Something went wrong.");
