Skip to main content

The code behind the blocks

Blockly is a visual layer over JavaScript: every block turns into code when the script runs. To see that code, open More > Export to runner.

Runner Code Preview, opened from More, Export to runner: the JavaScript the blocks of Hello World turn into, with buttons to copy or download it

Runner Code Preview shows the script's type, its version and its code:

  • Copy code copies the code itself, to read or to paste into a TypeScript script as a starting point.
  • Copy and Download give the export as a string for the Bitbybit runner, and Copy minified and Download minified a smaller one.

The runner runs a script inside your own web page, without the editor: the runner with Blockly shows how.

Verified against the product in October 2026