StatementΒΆ
- A semicolon at the end of a code can be omitted (usually omitted) if it does not cause syntax ambiguity
- A function can either return a value or not return a value,for example
let abc = function (a: number)
if a > 0 then
return
else
return 1
end
end
--
The rest of the lines that are attached to the minus sign are the comments--[[
and]]
The multi-line text in the middle is also comments