Lua playground

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

greet("World")

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:     codapi
sandbox name:       lua
allowed commands:   run
in-browser:         via wasi

Usage example:

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

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

Documentation