println()
Try it yourself →Prints the value to the console and moves to the next line.
Syntax
println(value)
Description
Prints the given value and adds a newline. Unlike print, println moves to the next line. The most commonly used output command.
Example
println("Hello")
println(42)Expected output
Hello 42
When to use?
Showing results, debugging.