JavaScript REPL Terminal

Run JavaScript directly in your browser inside a sandboxed Web Worker. Top-level await, ESM imports, console capture, persistent history, and a full terminal UI. No install, no backend.

js-repl — browser

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

Tips