JavaScript Playground
Run JavaScript snippets in a sandboxed frame with captured console output.
Preview
console.log output appears here
Your input is processed locally in this browser tab.
How to use JavaScript Playground
Write JavaScript directly in the JS editor tab alongside optional companion HTML and CSS.
Use Run or Auto-run to execute your code inside the isolated iframe sandbox.
Inspect console output lines and catch errors safely in the Console viewer.
Frequently asked questions
Can sandboxed scripts read my PufferKit session or make unauthorized requests?
No. The sandbox runs with a strict null-origin CSP isolated from your main tab.
How do I restore the starter snippet?
Click Reset in the toolbar to restore the default HTML, CSS, and JavaScript starter.