Playground
This page runs the WebAssembly build of ztcl in a Web Worker. The script has no access to the network or to files. The compute limit and the memory limit stop it. The WebAssembly guide shows how to do this in your own page.
Each run starts a new interpreter. The output of puts shows when the script ends. The memory limit is a cap of the heap. The linear memory of the worker can grow to twice the limit, and it goes back to the browser at the next run.