JavaScript Runner
Run JavaScript code safely in your browser.
Code runs in a Web Worker inside a sandboxed iframe (treated as a different origin from this site) and cannot access this site's cookies, local storage, or page content, so it is safe to try. Execution is stopped automatically if it does not finish within 5 seconds. Asynchronous work such as setTimeout keeps running after execution finishes; use the Stop button to discard the runtime entirely. Because code runs in a Web Worker, DOM APIs such as document and alert / confirm / prompt are not available.
You can also run the code with Ctrl + Enter (⌘ + Enter on a Mac) in the editor.
Console output
(No output yet)