CatpileDocs
ExamplesHello World

The simplest CatLang program — an introduction to events, logging, and variables.

Step 11. Your First Script1 / 6
python
on loaded:
log("Hello World!")

What happens:

  • on loaded: runs when the page finishes loading
  • log(...) prints text to the CatWeb console