print(string);
Prints out the given string to the console. The console is not raised or opened automatically, however, this can be done by the user anytime. Using Dialog.show() you can also open the console by your script.
See also: logError(), logWarning()