puts / print / p
Prints to the screen.
Syntax
puts value
Description
puts moves to a new line after every value. print does not add a newline at the end. p prints the value in an 'inspectable' format (shows arr/strings with quotes) — useful for debugging.
Example
Loading editor…
Expected output
Hello side by side [1, 2, 3]
When to use?
Showing results; debugging with p.