Basic
Hello world
Just run this code:
// Print a greeting
puts 'Hello, world!'Comments
A comment starts with //
// This is an inline commentAnd multi-line comment
/*
this is
a multi-line
comment
*/No semicolon
There is no semicolon, so you should put your statements and expression line-by-line correctly.
// todo
Console
puts is a keyword which supports you to print values into console (stdout).
// todo
Last updated
Was this helpful?