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.
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.
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 theconsole.print()
method to output to the screen.