๐Ÿ‘‹ Hello World
3 examples ยท Click Copy to use in your project
Hello World
The simplest Astra program โ€” print a message to the screen.
hello.astra
write "Hello, World!"
Output
Hello, World!
Multiple Lines
Write multiple lines using multiple write statements.
multiline.astra
write "Hello!" write "Welcome to Astra." write "Let's code."
Output
Hello! Welcome to Astra. Let's code.
Write with Variable
Store a value and print it.
var-hello.astra
name = "Astra" write "Hello, " + name + "!"
Output
Hello, Astra!