File I/O

Native Functions

Print

Outputs a single value to standard output, followed by a newline.

Declaration

void print(int | double | string | bool | char | null value);

Parameters

  • value: int | double | string | bool | char | null

Return Value

This function returns nothing. It has a return type of void.

Example

print("Hello, world!");
print(42);
print(true);

Output:

$ Hello, world!
42
true