fork download
  1. mytype = nil
  2. print("mytype = " .. type(mytype))
  3. mytype = true
  4. print("mytype = " .. type(mytype))
  5. mytype = 10
  6. print("mytype = " .. type(mytype))
  7. mytype = "Hello"
  8. print("mytype = " .. type(mytype))
  9. mytype = {}
  10. print("mytype = " .. type(mytype))
  11. mytype = function() end
  12. print("mytype = " .. type(mytype))
Success #stdin #stdout 0.01s 2540KB
stdin
Standard input is empty
stdout
mytype = nil
mytype = boolean
mytype = number
mytype = string
mytype = table
mytype = function