Skip to content

Input and Output

StellarTrails provides simple ways to print output to the console.

Printing to the Console

Use the print function to display text or values:

print("Hello, StellarTrails!")

let x = 42
print(x)

Example

let name = "Si"
print("Welcome, " + name + "!")

Next: Comments