Displays text in the web browser's console.
print()
is helpful for printing values while debugging. Each call to print()
creates a new line of text.
Note: Call print('\n')
to print a blank line. Calling print()
without an argument opens the browser's dialog for printing documents.
Examples
Syntax
print(contents)
Parameters
contents
content to print to the console.
Notice any errors or typos? Please let us know. Please feel free to edit src/core/environment.js and open a pull request!