Types - typeof



examples/intro/types.cr
name = "Foo Bar"
p! typeof(name) # typeof(name) => String

age = 42
p! typeof(age) # typeof(age) => Int32

pi = 3.14
p! typeof(pi) # typeof(pi) => Float64

yesno = true
p! typeof(yesno) # typeof(yesno) # => Bool