What you can do here
- Modern JavaScript: top-level
await, classes, private fields, modules-style code, Map and Set. - A real console:
console.log,warn,errorandconsole.table, which draws a table. - Sample data:
await loadCSV("orders.csv")returns rows as objects, from the same datasets as the Python, SQL and R playgrounds. - Safe: code runs in an isolated worker, so it cannot touch this page, and Stop always works.
- Share and embed runnable examples, with your code stored in the link itself.
Limits
There is no web page (DOM) to change: this playground is for the language itself, like Node.js without files. Use return value or console.log to see results.
Examples
| Example | What it shows |
|---|---|
| Hello, JavaScript | Variables, template strings, a loop and a function. |
| map, filter and reduce | The three array methods you will use most. |
| Average order value by country | loadCSV() reads the sample data; objects group the rows. |
| Top 5 products by revenue | Sum per product, sort, slice. |
| Promises and async/await | Waiting for things without blocking. |
| Classes and objects | A small class with a method and a getter. |
| JSON and regular expressions | Parse, transform and validate text. |
Learn more
Building for the web? The Flask & Deployment course shows how a JavaScript front end talks to a Python back end.
Questions
Is this JavaScript runner free?
Yes, with no sign-up.
Does top-level await work?
Yes. You can await promises directly, without wrapping your code in a function.
Can I use the DOM?
No. Code runs in an isolated worker so it cannot change the page; this playground is for the language itself.