Method

In Lua, a method, or function is a block of code that can be executed multiple times. Methods can belong to instances, tables, or global. Functions can be defined using the 'function' keyword.

The following code would create a function and run it.

The following would also create a function and call it once.

Additionally, methods can belong to instances. For example...