Standard Lua uses 64-bit integers and double-precision (64-bit) floating-point numbers, 32-bit integers and single-precision (32-bit) floating-point numbers see luaconf.h
macros in the file LUA_32BITS。
Notes
-- single line
--[[ ]]-- Multi-line
Default
Variables are global variables. Global variables do not need to be declared. After assigning a value to a variable, the global variable is created, and there is no error in accessing an uninitialized global variable, but the result is: nil.
string
"string1"
'string2'
[[string3]]
String concatenation: "string1".."string2" string1string2
String length: #string
Boolean
0 is true
false and nil are false
array
Subscripts start at 1, but you can also specify 0-based.
{...} represents an array of all variable-length parameters