Fundamentals7 / 14
Up next

The basic types

-- type() returns the type name as a string
print(type(42))
print(type("hi"))
print(type(true))
print(type(nil))
print(type({}))
print(type(print))
What you're solving

type() names a value's type