print

print

print

Function

Outputs a value to the current output buffer without automatically appending newlines.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueAnyYesNoneThe value to output.

Return value

TypeDescription
AnyReturns the value being output.

Code Example

Notes

  • print will not automatically wrap lines, and continuous output will be spliced directly.
  • The parenthesized and unbracketed forms have the same semantics.
  • Use println when automatic line wrapping is required.
  • When empty is actively output, it will be displayed as empty to facilitate troubleshooting of missing values; JSON serialization will still output empty as null.
  • print is a language output statement, not a system function that can be called dynamically through call().