Skip to content

JavaScript playground

Write JavaScript and run it. Nothing is graded or recorded, and nothing is sent to a server.

Examples

Your code

Loading the editor…

// console.log prints a line in the console below.
console.log("Hello, world!");

const name = "Ana";
console.log(`Nice to meet you, ${name}.`);

Ctrl + Enter (⌘ + Enter on a Mac) runs your code. Tab indents; press Esc, then Tab, to leave the editor.

Console

What your code logs with console.log appears here.