Free · runs in your browser · no sign-up
JavaScript REPL
Type JavaScript, press Enter, see the result. Variables stick around between lines, await works at the top level, and an infinite loop just resets the sandbox. Built from scratch by Jude Bezdek.
How it works
Your code runs in a hidden iframe with the sandbox attribute and an opaque origin, so it can't read this page, your cookies or your storage. Each line is evaluated in the iframe's global scope, which is why variables persist. Output and errors are sent back with postMessage and pretty-printed, including arrays, objects, Maps, Sets and circular references.
If a line doesn't answer within three seconds, the REPL throws away the iframe and starts a fresh one.
- Shift+Enternew line
- ↑ / ↓history
- .clearclear screen
- .resetwipe variables
- Made byJude Bezdek