JavaScript REPL Terminal
Loading terminal…
Examples
Click Load to paste into the terminal, or ▶ Run to paste and execute immediately.
About this tool
This REPL runs your JavaScript in a Web Worker — sandboxed away from the
page DOM. Variables persist across commands, exactly like a
Node.js or browser console REPL. const and let are automatically
rewritten to var so they can be reassigned in later commands.
Features
- Top-level await —
let r = await fetch('https://api.github.com').then(r => r.json()) - Dynamic ESM imports —
const _ = (await import('https://esm.sh/lodash')).default - Console capture —
log,warn,error,info,debug,tableall shown inline - Persistent history — 200 entries saved to
localStorage, restored on reload - Full keyboard editing — ← → Home End, ↑ ↓ history, Ctrl+C / Ctrl+L
- Paste support — paste multi-line code and run it as one block
Tips
- Use
letorconstfreely — they're rewritten tovarso variables persist across commands - Type
help()to see the full command reference and example snippets - Press Ctrl+L or type
clear()to clear the screen