Free play JavaScript

Output
Press Run and your output appears here.

How this works, and what it can't do

Everything here runs inside your own browser, on your own machine. Nothing is uploaded and no server is involved. That is why it is instant and free.

The live preview is a real web page rendered in an <iframe> — the same technology every code-preview site uses. It is sandboxed, so code you write there cannot reach out and change this page around it.

Why JavaScript and not Python? Every browser already contains a JavaScript engine. None contains Python. Running Python needs Python installed on your computer, which is exactly what Lesson 1 walks you through. The good news: loops, variables and conditions work the same way in both, so what you practise here transfers.

And a real hosted site? That is a different step, and a free one — Getting it online covers it. Download your page here, drag the file onto a free host, and it has a real address anyone can open.