Lua - Print the types different values Code Example

The code for Print the types different values

print(type("Hello, world!"))

any = 20
print(type(any))
print(type(5.8*any))
print(type(true))
print(type(print))
print(type(nil))
print(type(type(ABC)))

--[[
Output:
string
number
number
boolean
function
nil
string
--]]
Code by IncludeHelp, on August 25, 2022 22:48

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.