Difference between revisions of "Bot Playground/Built-in Functions/console.error"

From SmartBots Developers Docs
Jump to: navigation, search
(Examples)
 
Line 3: Line 3:
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
console.log(...arguments);
+
console.error(...arguments);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 15: Line 15:
  
 
{{API Variables Table End}}
 
{{API Variables Table End}}
 
== Examples ==
 
 
<syntaxhighlight lang="javascript">
 
console.error("Oops! Something went wrong.");
 
</syntaxhighlight>
 
  
 
{{NavMenu}}
 
{{NavMenu}}

Latest revision as of 12:29, 30 July 2025

Logs data to the error log. Read more about error logs.

console.error(...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