Hello WorldΒΆ
The first thing you need to learn in any programming language is the famous Hello World!
program.
In Crystal this is pretty simple, maybe even too boring.
You can build and run this code by clicking on the play button.
puts "Hello World!"
This method prints the string (plus a trailing new line character) to the standard output.
All code in the top-level scope is part of the main program. There is no explicit main
function like in some other languages.