JavaScript compiler
Write JavaScript, run it, and see the output. It runs in your browser and never leaves your device.
How it works: your code runs in a protected background worker inside your browser. Nothing is sent anywhere, it cannot touch this page, and the Stop button always works. Press Ctrl+Enter (Cmd+Enter on a Mac) to run. To leave the editor with the keyboard, press Esc and then Tab.
Output
About this tool
Type or paste JavaScript and press Run. console.log and the other console methods print to the output box, and errors show the line number. Code runs in a protected background worker, so a loop that never ends cannot freeze this page: press Stop, or it stops by itself after the time you choose. Top-level await works, timers are waited for, and the Input box is available to your code as the text input and the list lines. Your code is saved on this device so you can come back to it. This runs JavaScript only. It cannot run other languages and it cannot use the page or your files.