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. print does not move to the next line.
Example
println("Hello")
println(42)Expected output
Hello 42
When to use?
Showing results, debugging.