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!

To display text on the screen, use show:

show "Hello, world!"
Hello, world!

Text is written inside double quotes ("...").

show accepts numbers, too:

show (1 + 2)
3

You need parentheses there because operators like + have precedence over whitespace, so show 1 + 2 is interpreted as (show 1) + 2. Rather than displaying 1 on the screen and adding the result to 2, we want to add 1 to 2 and display the result. You can use parentheses like this almost anywhere!