JavaScript playground

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

greet("World");

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:

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

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

Documentation