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)
print(data)
Parameters
contents
Any: content to print to the console.
data
String|Number|Array: data to be written as a string, number, or array of strings and numbers.
Notice any errors or typos? Please let us know. Please feel free to edit src/io/files.js and open a pull request!