Home / Tools / JS & TS Playground

JS & TS Playground

Write JavaScript or TypeScript-style code, run it in a sandbox and read the console output right next to the editor. Good for quick experiments and snippets.

JavaScript & TypeScript
Sandboxed run
Ctrl + Enter to run

Editor

JavaScript · Ctrl Enter runs

Console

Code runs in a restricted sandbox: network, DOM and timer APIs are blocked, and long runs stop after 2 seconds. Use console.log() to print; errors show up in the console in red.