print()
Displays text in the command line console.
print() is helpful for printing values while debugging. Each call to print() creates a new line of text.
Note: Call print() to print a blank line.
Examples

function setup()
-- Prints "hello, world" to the console.
print('hello, world')
end
Syntax
print(contents)
Parameters
| Parameter | |
|---|---|
| contents | Any: content to print to the console. |
Related
This reference page contains content adapted from p5.js and Processing by p5.js Contributors and Processing Foundation, licensed under CC BY-NC-SA 4.0.