Home / Playground / JavaScript

Online JavaScript runner

Write modern JavaScript and see the console output instantly. Top-level await works, console.table draws tables, and loadCSV() gives you sample data to practise with. Code runs in an isolated sandbox, so it can never affect the page.

Ctrl/⌘ + Enter: run · Ctrl/⌘ + /: comment · Esc: leave the editor

What you can do here

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

ExampleWhat it shows
Hello, JavaScriptVariables, template strings, a loop and a function.
map, filter and reduceThe three array methods you will use most.
Average order value by countryloadCSV() reads the sample data; objects group the rows.
Top 5 products by revenueSum per product, sort, slice.
Promises and async/awaitWaiting for things without blocking.
Classes and objectsA small class with a method and a getter.
JSON and regular expressionsParse, 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.