Lua playground

function greet(name)
  print("Hello, " .. name .. "!")
end

greet("World")
This playground is completely in-browser.

The first run will download the Lua runtime (330 KB). Subsequent runs will be instantaneous.

Lua is a lightweight multi-paradigm programming language designed primarily for embedded use in applications.

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

Lua version:        5.4
sandbox engine:     wasi
sandbox name:       lua
allowed commands:   run
in-browser:         ✔

Usage example:

```lua
print("Hello, World!")
```

<codapi-snippet engine="wasi" sandbox="lua" editor="basic">
</codapi-snippet>

Documentation