Lua has the following basic data types:
- Number: This stores integer and double float numbers
- String: This stores sequence of bytes
- Boolean: It has two values--false and true
- Table: This stores associative arrays that can be used to represent multiple data structures
- Function: Object of a function
- Nil: This indicates the lack of value of a data type or variable
- Userdata: This exposes the values of C objects (or other non-Lua objects).
- Thread: Independent thread of execution.