3 ms·
No, the curly braces have a different meaning (lists and tables, what JavaScript calls "object literals"). In Lua, it'd be function sum(a,b) return
by silentbicycle 17y ago
No, the curly braces have a different meaning (lists and tables, what JavaScript calls "object literals"). In Lua, it'd be
function sum(a,b)
return a+b
end
Close, though. (The semicolon is optional, and typically only used with multiple statements on one line.)