Fundamentals2 / 14
Up next

Local variables

-- local keeps a variable out of the global namespace
local name = "Ada"
local year = 1815
-- .. joins strings; the number is coerced to text
print(name .. " born in " .. year)
What you're solving

local scopes a variable to its block