JavaScript Runner
Write JavaScript and run it right here. See console output, errors and async results with no setup.
Runs in your browser. Your input is never uploaded.
How to use it
- Type or paste JavaScript, or pick an example.
- Press Run, or Ctrl+Enter (Cmd+Enter on Mac).
- Use console.log to print values. Errors appear in red.
- Press Stop if something takes too long. Runs also stop after 10 seconds.
Want to learn more? Read How to run JavaScript online without installing anything.
FAQ
- Does it support async and await?
- Yes, and top-level await works too, so you can write await fetch(...) directly.
- Can I use document or window?
- No. Code runs in a background worker for safety, so there is no page or DOM. Use console.log for output.
- What if my code loops forever?
- The run is stopped automatically after 10 seconds, and you can press Stop at any time.
- Is my code sent anywhere?
- No. It runs in your browser. Code that calls fetch makes requests from your device, as in any browser.