println

println

println

Function

Outputs a value to the current output buffer, appending a newline at the end.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueAnyYesNoneThe value to output.

Return value

TypeDescription
AnyReturns the value being output.

Code Example

Notes

  • println will automatically append newlines, suitable for debugging output and logs.
  • The parenthesized and unbracketed forms have the same semantics.
  • Use print when line breaks are not required.
  • println is a language output statement, not a system function that can be called dynamically through call().