Pick an example, then press Ctrl/⌘ + Enter or click Run Code. Code runs 100% in your browser — nothing is sent to a server.
Write, run and test JavaScript directly in your browser — no installation, no sign-up, and nothing sent to a server. Code executes in your browser's own JavaScript engine and the output from console.log and console.error appears instantly in the console panel. It's perfect for learning JavaScript, testing a snippet, prototyping logic, or preparing for coding interviews.
This editor runs browser JavaScript, so Node.js-only APIs such as require, fs and process aren't available — it's built for language features, algorithms and data manipulation. The last expression's value is shown alongside anything you log, and thrown exceptions are reported with their message so you can debug quickly.