Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hello World

This is the source code of the traditional Hello World program.

// This is a comment, and is ignored by the compiler

// This is a procedure/function named `main()` defined globally.
// We'll learn more about these later.
/proc/main()
  // Print text to the console
  world.log << "Hello World!"

world.log << "xyz" is the most basic way to output text to the console, using the << operator.

Activity

Try adding a new line with a second world.log << so that the output shows:

Hello World!
I'm a Developer!