Skip to content

Overview of the console object

The console object provides methods for outputting information, warnings, errors, and debug data in the console of the MotorXP-AFM application. This powerful tool is designed to help developers monitor and debug their scripts.

Primary Capabilities of console

  • Output messages with different levels (log, info, warn, error).
  • Clear the console output (clear).
  • View objects and their properties (dir).

Methods of the console object

Below is a list of the available methods provided by the console object. Click on a method name to see its detailed description and examples.

Method Output Color Description
console.log() Gray Outputs a normal message to the console.
console.info() Green Outputs an informational message.
console.warn() Yellow Outputs a warning message.
console.error() Red Outputs an error message.
console.clear() - Clears the console content.
console.dir() - Displays a list of properties and methods of the specified JavaScript object.
Last update: 8 August 2025, 10:36