Variable console

console: Console = ...

The global console object contains functions for printing text to the screen, which can be useful for text-based applications, and is also useful for debugging.

Most methods use the Switch.inspect() method for formatting, and the console.print() method to output to the screen.

NOTE: Invoking any method on the console object switches the application to text rendering mode, clearing any pixels previously drawn on the screen using the Canvas API.