There is a table type in Lua, similar to Javascript Object, which can put various dynamic types, all of which support lexical delimitation, so they all support the construction of closures. Lua's lexical delimitation uses the method of upvalue reference, and the main mark of garbage collection is deleted. Javascript will automatically expand to 64-bit integers when data overflows, but Lua doesn't seem to support 64-bit integers. The outermost objects of Javascript are window and global, and Lua is _ g. According to official documents, it is quite expensive for Lua to obtain the functions of debugging modules used in the execution environment, and Javascript can be obtained directly through the arguments object. Lua, like Javascript, only provides general operations.