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

Comments

: starts a single-line comment. Everything after : on that line is ignored:

: this is a comment
x = 42

:: starts a block comment. Everything between :: and the next :: is ignored:

:: this is a
block comment ::
x = 10

Block comments can span multiple lines:

::
this is
a multi-line
comment
::

# is for function definitions, not comments: #add(a, b) { a + b }.

// is integer division, not a comment: 10 // 3 = 3.