JavaScript playground

const greet = (name) => {
    console.log(`Hello, ${name}!`)


This playground is completely in-browser, no server required.

JavaScript is a lightweight interpreted (or just-in-time compiled) programming language with first-class functions. It is best known as the scripting language for web pages.

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

JavaScript version: ES2023
sandbox engine:     browser
sandbox name:       javascript
allowed commands:   run
in-browser:         ✔

Usage example:

console.log("Hello, World!");

<codapi-snippet engine="browser" sandbox="javascript" editor="basic">