println
Try it yourself →Prints the value to the console and moves to the next line.
Syntax
println value
Description
Writes the value and adds a newline. Parentheses are optional: println "x" or println("x"). print does not move to the next line.
Example
println "Hello" println 42
Expected output
Hello 42
When to use?
Showing results, debugging.